On Tue, 19 Apr 2022 16:43:12 GMT, Daniel Fuchs <dfu...@openjdk.org> wrote:
>> Conor Cleary has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 8283544: Updated URI creation > > 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. ------------- PR: https://git.openjdk.java.net/jdk/pull/8017