hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f.@apache.org
Subject svn commit: r1445521 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/HttpRequestWrapper.java
Date Wed, 13 Feb 2013 09:51:24 GMT
Author: fx
Date: Wed Feb 13 09:51:24 2013
New Revision: 1445521

URL: http://svn.apache.org/r1445521
Log:
HTTPCLIENT-1323: CachingHttpClient ignores params set on the request

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/HttpRequestWrapper.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/HttpRequestWrapper.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/HttpRequestWrapper.java?rev=1445521&r1=1445520&r2=1445521&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/HttpRequestWrapper.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/HttpRequestWrapper.java
Wed Feb 13 09:51:24 2013
@@ -38,6 +38,7 @@ import org.apache.http.RequestLine;
 import org.apache.http.annotation.NotThreadSafe;
 import org.apache.http.message.AbstractHttpMessage;
 import org.apache.http.message.BasicRequestLine;
+import org.apache.http.params.HttpParams;
 import org.apache.http.protocol.HTTP;
 
 /**
@@ -141,4 +142,13 @@ public class HttpRequestWrapper extends 
         }
     }
 
+    @Override
+    @Deprecated
+    public HttpParams getParams() {
+        if (this.params == null) {
+            this.params = original.getParams().copy();
+        }
+        return this.params;
+    }
+
 }



Mime
View raw message