You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2018/12/17 16:41:18 UTC

[httpcomponents-client] branch HTTPCLIENT-1956 created (now 90f22e8)

This is an automated email from the ASF dual-hosted git repository.

olegk pushed a change to branch HTTPCLIENT-1956
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git.


      at 90f22e8  HTTPCLIENT-1956: CONNECT overwrites the main request object in the HTTP context when requests are executed via a proxy tunnel

This branch includes the following new commits:

     new 90f22e8  HTTPCLIENT-1956: CONNECT overwrites the main request object in the HTTP context when requests are executed via a proxy tunnel

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[httpcomponents-client] 01/01: HTTPCLIENT-1956: CONNECT overwrites the main request object in the HTTP context when requests are executed via a proxy tunnel

Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch HTTPCLIENT-1956
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git

commit 90f22e85ffa0bb8e457e2303582e4439c900b3af
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Mon Dec 17 16:37:20 2018 +0100

    HTTPCLIENT-1956: CONNECT overwrites the main request object in the HTTP context when requests are executed via a proxy tunnel
---
 .../src/main/java/org/apache/http/impl/execchain/MainClientExec.java     | 1 +
 1 file changed, 1 insertion(+)

diff --git a/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java b/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java
index 271d796..dc607ee 100644
--- a/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java
+++ b/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java
@@ -268,6 +268,7 @@ public class MainClientExec implements ClientExecChain {
                     this.authenticator.generateAuthResponse(request, proxyAuthState, context);
                 }
 
+                context.setAttribute(HttpCoreContext.HTTP_REQUEST, request);
                 response = requestExecutor.execute(request, managedConn, context);
 
                 // The connection is in or can be brought to a re-usable state.