Skip to content

Commit b1388fd

Browse files
committed
test workaround for 8276559
1 parent 03c9fca commit b1388fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/jdk/java/net/httpclient/ContentLengthHeaderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public void headWithNoBody() throws IOException, InterruptedException {
158158
testLog.println("Checking HEAD with no request body");
159159
HttpRequest req = HttpRequest.newBuilder()
160160
.version(HTTP_1_1)
161-
.HEAD()
161+
.method("HEAD", HttpRequest.BodyPublishers.noBody())
162162
.uri(URI.create(testContentLengthURI + NO_BODY_PATH))
163163
.build();
164164
HttpResponse<String> resp = hc.send(req, HttpResponse.BodyHandlers.ofString(UTF_8));

0 commit comments

Comments
 (0)