RFR: 8133686: HttpURLConnection.getHeaderFields and URLConnection.getRequestProperties methods return field values in reverse order [v3]

Evan Whelan ewhelan at openjdk.java.net
Mon May 24 15:08:50 UTC 2021


> Hi all,
> 
> Please review this fix for which corrects the order in which field values are returned from the `HttpURLConnection.getHeaderFields` and `URLConnection.getRequestProperties` methods.
> 
> Currently, the implementation of these methods returns the values in reverse. This does not conform with the RFC2616 spec which outlines that the order of these field values should not be changed. 
> 
> Thanks,
> Evan

Evan Whelan has updated the pull request incrementally with one additional commit since the last revision:

  MessageHeaderTest add comma to copyright year

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/2294/files
  - new: https://git.openjdk.java.net/jdk/pull/2294/files/1a74ae6e..4e0c96cb

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=2294&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=2294&range=01-02

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/2294.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/2294/head:pull/2294

PR: https://git.openjdk.java.net/jdk/pull/2294


More information about the net-dev mailing list