Patch for AsyncHttpClient/async-http-client/issues/471