HTTPCLIENT-974: RequestWrapper does not use the headers of the request it wraps

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@982361 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2010-08-04 18:56:39 +00:00
parent d6a0b4d1a1
commit 143f3b0a0c
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ public class RequestWrapper extends AbstractHttpMessage implements HttpUriReques
} }
this.original = request; this.original = request;
setParams(request.getParams()); setParams(request.getParams());
setHeaders(request.getAllHeaders());
// Make a copy of the original URI // Make a copy of the original URI
if (request instanceof HttpUriRequest) { if (request instanceof HttpUriRequest) {
this.uri = ((HttpUriRequest) request).getURI(); this.uri = ((HttpUriRequest) request).getURI();