hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1629134 - /httpcomponents/httpclient/trunk/httpclient/src/main/java-deprecated/org/apache/http/impl/client/AbstractHttpClient.java
Date Fri, 03 Oct 2014 08:14:29 GMT
Author: olegk
Date: Fri Oct  3 08:14:29 2014
New Revision: 1629134

URL: http://svn.apache.org/r1629134
Log:
HTTPCLIENT-1556: Default CookieSpecs provider not found for AbstractHttpClient subclass
Contributed by Timo Kinnunen <timo.kinnunen at gmail.com>

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

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java-deprecated/org/apache/http/impl/client/AbstractHttpClient.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java-deprecated/org/apache/http/impl/client/AbstractHttpClient.java?rev=1629134&r1=1629133&r2=1629134&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java-deprecated/org/apache/http/impl/client/AbstractHttpClient.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java-deprecated/org/apache/http/impl/client/AbstractHttpClient.java
Fri Oct  3 08:14:29 2014
@@ -53,6 +53,7 @@ import org.apache.http.client.RedirectHa
 import org.apache.http.client.RedirectStrategy;
 import org.apache.http.client.RequestDirector;
 import org.apache.http.client.UserTokenHandler;
+import org.apache.http.client.config.CookieSpecs;
 import org.apache.http.client.config.RequestConfig;
 import org.apache.http.client.methods.CloseableHttpResponse;
 import org.apache.http.client.params.AuthPolicy;
@@ -372,6 +373,9 @@ public abstract class AbstractHttpClient
     protected CookieSpecRegistry createCookieSpecRegistry() {
         final CookieSpecRegistry registry = new CookieSpecRegistry();
         registry.register(
+                CookieSpecs.DEFAULT,
+                new BestMatchSpecFactory());
+        registry.register(
                 CookiePolicy.BEST_MATCH,
                 new BestMatchSpecFactory());
         registry.register(



Mime
View raw message