--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Http1Request.java Mon Feb 05 11:57:50 2018 +0000
+++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Http1Request.java Mon Feb 05 12:07:33 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 {