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

Daniel Fuchs dfuchs at openjdk.java.net
Tue Aug 17 09:03:51 UTC 2021


On Tue, 17 Aug 2021 08:52:36 GMT, Evan Whelan <ewhelan at openjdk.org> wrote:

>> 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains six additional commits since the last revision:
> 
>  - Changed spec text to make correct use of tags
>  - Merge branch 'master' into JDK-8133686_MessageHeader
>  - MessageHeaderTest add comma to copyright year
>  - URLConnection doc fixes
>  - 8133686:  8133686: HttpURLConnection.getHeaderFields and URLConnection.getRequestProperties methods return field values in reverse order v2
>  - 8133686: HttpURLConnection.getHeaderFields and URLConnection.getRequestProperties methods return field values in reverse order

Marked as reviewed by dfuchs (Reviewer).

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

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


More information about the net-dev mailing list