We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03c9fca commit b1388fdCopy full SHA for b1388fd
test/jdk/java/net/httpclient/ContentLengthHeaderTest.java
@@ -158,7 +158,7 @@ public void headWithNoBody() throws IOException, InterruptedException {
158
testLog.println("Checking HEAD with no request body");
159
HttpRequest req = HttpRequest.newBuilder()
160
.version(HTTP_1_1)
161
- .HEAD()
+ .method("HEAD", HttpRequest.BodyPublishers.noBody())
162
.uri(URI.create(testContentLengthURI + NO_BODY_PATH))
163
.build();
164
HttpResponse<String> resp = hc.send(req, HttpResponse.BodyHandlers.ofString(UTF_8));
0 commit comments