Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
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.