hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1558054 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java
Date Tue, 14 Jan 2014 14:42:34 GMT
Author: ggregory
Date: Tue Jan 14 14:42:33 2014
New Revision: 1558054

URL: http://svn.apache.org/r1558054
Log:
The static fields in HttpCoreContext should be accessed directly.

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java?rev=1558054&r1=1558053&r2=1558054&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java
Tue Jan 14 14:42:33 2014
@@ -66,6 +66,7 @@ import org.apache.http.entity.BufferedHt
 import org.apache.http.impl.auth.HttpAuthenticator;
 import org.apache.http.impl.conn.ConnectionShutdownException;
 import org.apache.http.message.BasicHttpRequest;
+import org.apache.http.protocol.HttpCoreContext;
 import org.apache.http.protocol.HttpProcessor;
 import org.apache.http.protocol.HttpRequestExecutor;
 import org.apache.http.protocol.ImmutableHttpProcessor;
@@ -181,7 +182,7 @@ public class MainClientExec implements C
             throw new RequestAbortedException("Request execution failed", cause);
         }
 
-        context.setAttribute(HttpClientContext.HTTP_CONNECTION, managedConn);
+        context.setAttribute(HttpCoreContext.HTTP_CONNECTION, managedConn);
 
         if (config.isStaleConnectionCheckEnabled()) {
             // validate connection



Mime
View raw message