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:19 UTC
[httpcomponents-client] 01/01: HTTPCLIENT-1956: CONNECT overwrites
the main request object in the HTTP context when requests are executed via
a proxy tunnel
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.