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

Header adding in org.apache.http.client.protocol.RequestAcceptEncoding should be conditional

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.2 Final
    • None

    Description

      org.apache.http.client.protocol.RequestAcceptEncoding adds a header in any case. Any chance to do it conditional (like in RequestClientConnControl)? The code would be something like
      if (!request.containsHeader("Accept-Encoding")) {
      request.addHeader("Accept-Encoding", "gzip,deflate");
      }

      In our app this header may be added before request intercepting, so would be great if this fact is checked.

      Attachments

        Activity

          People

            Unassigned Unassigned
            buzzeri Ivan Bondarenko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: