--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Http1Request.java Mon Feb 05 12:29:31 2018 +0000
+++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Http1Request.java Mon Feb 05 12:32:20 2018 +0000
@@ -202,7 +202,7 @@
if (uri != null) {
systemHeaders.setHeader("Host", hostString());
}
- if (request == null || requestPublisher == null) {
+ if (requestPublisher == null) {
// Not a user request, or maybe a method, e.g. GET, with no body.
contentLength = 0;
} else {