src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Exchange.java
branchhttp-client-branch
changeset 56054 352e845ae744
parent 56041 b4b5e09ef3cc
child 56068 34eabbaa1226
--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Exchange.java	Wed Jan 31 15:52:35 2018 +0000
+++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Exchange.java	Wed Jan 31 16:18:41 2018 +0000
@@ -308,7 +308,8 @@
             bodyIgnored = MinimalFuture.completedFuture(null);
             Response proxyResponse = ((ProxyAuthenticationRequired)t).proxyResponse;
             Response syntheticResponse = new Response(request, this,
-                    proxyResponse.headers, proxyResponse.statusCode, proxyResponse.version);
+                    proxyResponse.headers, proxyResponse.statusCode,
+                    proxyResponse.version, true);
             return MinimalFuture.completedFuture(syntheticResponse);
         } else if (t != null) {
             return MinimalFuture.failedFuture(t);