# HG changeset patch # User chegar # Date 1517833940 0 # Node ID ffaea9a1eed5d4c1fbdfc1632584dad5eff63a93 # Parent 34eabbaa1226bc405f6dfff2a48882c5ada2a145# Parent 31eb9176ba85acb998d8b283f447f66f8bcd268c http-client-branch: merge diff -r 34eabbaa1226 -r ffaea9a1eed5 src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Http1Request.java --- 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 {