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

Response Header ordering not preserved from the server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • 2.0 Beta 1
    • HttpClient (classic)
    • None
    • Operating System: All
      Platform: All
    • 12244

    Description

      The headers are not returned by getResponseHeaders() in the order
      that they are read from the stream. The headers are stored in a HashMap and are
      effectively just the values() which are in no particular order.

      We could use a Vector in place of a HashMap for the headers so that
      the order is preserved, but would have abstract away the lookups by the name
      field (which there are many). Alternatively, we could mirror the contents in
      the hashmap in a vector (or array) so that we still have fast and convienent
      lookups, but still have order preservation of the headers.

      Attachments

        Activity

          People

            becke@u.washington.edu Michael Becke
            jsdever@sympatico.ca Jeff Dever
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: