On Tue, 19 Apr 2022 16:44:35 GMT, Daniel Fuchs <dfu...@openjdk.org> wrote:
>> test/jdk/java/net/httpclient/ContentLengthHeaderTest.java line 202: >> >>> 200: } else { >>> 201: String responseBody = exchange.getRequestMethod() + " >>> request contained an unexpected " + >>> 202: "Content-length header."; >> >> Maybe the message could include the value of `Content-Length` that was >> received. > > Also it's always better to drain the request input stream even if there is no > bytes. You could possibly do that in `handleResponse()` ------------- PR: https://git.openjdk.java.net/jdk/pull/8017