hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r982361 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/RequestWrapper.java
Date Wed, 04 Aug 2010 18:56:40 GMT
Author: olegk
Date: Wed Aug  4 18:56:39 2010
New Revision: 982361

URL: http://svn.apache.org/viewvc?rev=982361&view=rev
Log:
HTTPCLIENT-974: RequestWrapper does not use the headers of the request it wraps

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/RequestWrapper.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/RequestWrapper.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/RequestWrapper.java?rev=982361&r1=982360&r2=982361&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/RequestWrapper.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/RequestWrapper.java
Wed Aug  4 18:56:39 2010
@@ -69,6 +69,7 @@ public class RequestWrapper extends Abst
         }
         this.original = request;
         setParams(request.getParams());
+        setHeaders(request.getAllHeaders());
         // Make a copy of the original URI
         if (request instanceof HttpUriRequest) {
             this.uri = ((HttpUriRequest) request).getURI();



Mime
View raw message