RFR: 8358942: HttpClient adds Content-Length: 0 for a GET request with a BodyPublishers.noBody() [v4]
Daniel Jeliński
djelinski at openjdk.org
Tue Oct 14 18:41:02 UTC 2025
On Tue, 14 Oct 2025 18:12:21 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> Daniel Jeliński has updated the pull request incrementally with one additional commit since the last revision:
>>
>> More strict verification of content-length handling
>
> test/jdk/java/net/httpclient/ContentLengthHeaderTest.java line 224:
>
>> 222: assertEquals(resp.statusCode(), 200, resp.body());
>> 223: assertEquals(resp.version(), version);
>> 224: assertEquals(resp.body(), "Request completed");
>
> Ok - so now: remove or add everywhere?
Removed. It no longer served any purpose.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27727#discussion_r2430101169
More information about the net-dev
mailing list