hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r667772 - /httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/AbstractHttpClient.java
Date Sat, 14 Jun 2008 11:01:25 GMT
Author: olegk
Date: Sat Jun 14 04:01:24 2008
New Revision: 667772

URL: http://svn.apache.org/viewvc?rev=667772&view=rev
Log:
Use #createHttpContext() instead of new BasicHttpContext()

Modified:
    httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/AbstractHttpClient.java

Modified: httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/AbstractHttpClient.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/AbstractHttpClient.java?rev=667772&r1=667771&r2=667772&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/AbstractHttpClient.java
(original)
+++ httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/client/AbstractHttpClient.java
Sat Jun 14 04:01:24 2008
@@ -60,7 +60,6 @@
 import org.apache.http.protocol.BasicHttpProcessor;
 import org.apache.http.protocol.DefaultedHttpContext;
 import org.apache.http.protocol.HttpContext;
-import org.apache.http.protocol.BasicHttpContext;
 import org.apache.http.protocol.HttpProcessor;
 import org.apache.http.protocol.HttpRequestExecutor;
 
@@ -502,7 +501,7 @@
         // all shared objects that are potentially threading unsafe.
         synchronized (this) {
 
-            HttpContext defaultContext = new BasicHttpContext(null);
+            HttpContext defaultContext = createHttpContext();
             defaultContext.setAttribute(
                     ClientContext.AUTHSCHEME_REGISTRY, 
                     getAuthSchemes());



Mime
View raw message