From 96c32bc83514e589dac7d2e42e0ec823c2947640 Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Sat, 14 Jun 2008 11:01:24 +0000 Subject: [PATCH] Use #createHttpContext() instead of new BasicHttpContext() git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@667772 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/http/impl/client/AbstractHttpClient.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module-client/src/main/java/org/apache/http/impl/client/AbstractHttpClient.java b/module-client/src/main/java/org/apache/http/impl/client/AbstractHttpClient.java index fa35257c7..fa4641661 100644 --- a/module-client/src/main/java/org/apache/http/impl/client/AbstractHttpClient.java +++ b/module-client/src/main/java/org/apache/http/impl/client/AbstractHttpClient.java @@ -60,7 +60,6 @@ import org.apache.http.params.HttpParams; 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 @@ public abstract class AbstractHttpClient implements HttpClient { // all shared objects that are potentially threading unsafe. synchronized (this) { - HttpContext defaultContext = new BasicHttpContext(null); + HttpContext defaultContext = createHttpContext(); defaultContext.setAttribute( ClientContext.AUTHSCHEME_REGISTRY, getAuthSchemes());