RFR: 8163921: HttpURLConnection default Accept header is malformed according to HTTP/1.1 RFC [v2]
Michael McMahon
michaelm at openjdk.java.net
Mon Jan 24 14:41:11 UTC 2022
On Fri, 21 Jan 2022 19:53:55 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:
>> Fix RFC compliance.
>> Tier1 and tier2 passed.
>
> Daniel Jeliński has updated the pull request incrementally with one additional commit since the last revision:
>
> Update copyright year
src/java.base/share/classes/sun/net/www/protocol/http/HttpURLConnection.java line 293:
> 291: static final String acceptString =
> 292: "text/html, image/gif, image/jpeg, */*; q=0.2";
> 293:
It looks syntactically correct now, but I wonder about the actual semantics, and whether it makes any sense to be asking for 80% reduction in quality of other media types.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7181
More information about the net-dev
mailing list