src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/MultiExchange.java
branchhttp-client-branch
changeset 55764 34d7cc00f87a
parent 55763 634d8e14c172
child 55792 0936888d5a4a
--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/MultiExchange.java	Sun Nov 05 17:32:13 2017 +0000
+++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/MultiExchange.java	Sun Nov 05 21:19:55 2017 +0000
@@ -98,13 +98,14 @@
     /**
      * MultiExchange with one final response.
      */
-    MultiExchange(HttpRequest req,
+    MultiExchange(HttpRequest userRequest,
+                  HttpRequestImpl requestImpl,
                   HttpClientImpl client,
                   HttpResponse.BodyHandler<T> responseHandler,
                   AccessControlContext acc) {
         this.previous = null;
-        this.userRequest = req;
-        this.request = new HttpRequestImpl(req, acc);
+        this.userRequest = userRequest;
+        this.request = requestImpl;
         this.currentreq = request;
         this.client = client;
         this.filters = client.filterChain();
@@ -124,13 +125,14 @@
     /**
      * MultiExchange with multiple responses (HTTP/2 server pushes).
      */
-    MultiExchange(HttpRequest req,
+    MultiExchange(HttpRequest userRequest,
+                  HttpRequestImpl requestImpl,
                   HttpClientImpl client,
                   HttpResponse.MultiSubscriber<U, T> multiResponseSubscriber,
                   AccessControlContext acc) {
         this.previous = null;
-        this.userRequest = req;
-        this.request = new HttpRequestImpl(req, acc);
+        this.userRequest = userRequest;
+        this.request = requestImpl;
         this.currentreq = request;
         this.client = client;
         this.filters = client.filterChain();