Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1285

InternalHttpClient.doExecute() clobbers context request config

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.3 Alpha1
    • 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)

      { config = ((Configurable) request).getConfig(); }

      if (config == null)

      { config = this.defaultConfig; }

      if (config == null)

      { config = HttpClientParamConfig.getRequestConfig(params); }

      localcontext.setRequestConfig(config);

      This is in trunk as of r1414680

      Attachments

        Activity

          People

            Unassigned Unassigned
            nlevitt@gmail.com Noah Levitt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: