Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
In InternalHttpClient.doExecute() even if HttpClientContext requestConfig has been set, it gets replaced. Not sure what the intent is here as far as which config should take precedence, but if "request" doesn't provide a RequestConfig, I would certainly expect the HttpClientContext requestConfig to carry through.
HttpClientContext localcontext = setupContext(context);
HttpRoute route = determineRoute(target, wrapper, localcontext);
RequestConfig config = null;
if (request instanceof Configurable)
if (config == null)
{ config = this.defaultConfig; }if (config == null)
{ config = HttpClientParamConfig.getRequestConfig(params); }localcontext.setRequestConfig(config);
This is in trunk as of r1414680