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:
parent
d6a0b4d1a1
commit
143f3b0a0c
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue