From 1dbd3e4fd51c4afede6b4b06a79f3a1d8cdddadf Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Tue, 14 Jan 2014 14:41:19 +0000 Subject: [PATCH] The static fields in HttpCoreContext should be accessed directly. git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1558050 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/http/impl/execchain/ProtocolExec.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/httpclient/src/main/java/org/apache/http/impl/execchain/ProtocolExec.java b/httpclient/src/main/java/org/apache/http/impl/execchain/ProtocolExec.java index fcdca331d..a5c4319c3 100644 --- a/httpclient/src/main/java/org/apache/http/impl/execchain/ProtocolExec.java +++ b/httpclient/src/main/java/org/apache/http/impl/execchain/ProtocolExec.java @@ -51,6 +51,7 @@ import org.apache.http.client.utils.URIUtils; import org.apache.http.conn.routing.HttpRoute; import org.apache.http.impl.client.BasicCredentialsProvider; import org.apache.http.params.HttpParams; +import org.apache.http.protocol.HttpCoreContext; import org.apache.http.protocol.HttpProcessor; import org.apache.http.util.Args; @@ -185,9 +186,9 @@ public class ProtocolExec implements ClientExecChain { } // Run request protocol interceptors - context.setAttribute(HttpClientContext.HTTP_TARGET_HOST, target); + context.setAttribute(HttpCoreContext.HTTP_TARGET_HOST, target); context.setAttribute(HttpClientContext.HTTP_ROUTE, route); - context.setAttribute(HttpClientContext.HTTP_REQUEST, request); + context.setAttribute(HttpCoreContext.HTTP_REQUEST, request); this.httpProcessor.process(request, context);