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

This commit is contained in:
Oleg Kalnichevski 2018-12-17 16:37:20 +01:00
parent 2ad70741e6
commit 90f22e85ff

View File

@ -268,6 +268,7 @@ public CloseableHttpResponse execute(
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.