--- a/src/java.net.http/share/classes/jdk/internal/net/http/Exchange.java Fri May 25 16:13:11 2018 +0100
+++ b/src/java.net.http/share/classes/jdk/internal/net/http/Exchange.java Tue May 29 13:42:04 2018 +0100
@@ -332,6 +332,7 @@
int rcode = r1.statusCode();
if (rcode == 100) {
Log.logTrace("Received 100-Continue: sending body");
+ if (debug.on()) debug.log("Received 100-Continue for %s", r1);
CompletableFuture<Response> cf =
exchImpl.sendBodyAsync()
.thenCompose(exIm -> exIm.getResponseAsync(parentExecutor));
@@ -341,6 +342,7 @@
} else {
Log.logTrace("Expectation failed: Received {0}",
rcode);
+ if (debug.on()) debug.log("Expect-Continue failed (%d) for: %s", rcode, r1);
if (upgrading && rcode == 101) {
IOException failed = new IOException(
"Unable to handle 101 while waiting for 100");