http-client-branch: merge http-client-branch
authorchegar
Mon, 05 Feb 2018 12:32:20 +0000
branchhttp-client-branch
changeset 56069 ffaea9a1eed5
parent 56068 34eabbaa1226 (current diff)
parent 56067 31eb9176ba85 (diff)
child 56070 66a9c3185028
http-client-branch: merge
--- 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 {