mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-25 19:55:35 +00:00
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 RequestWrapper(final HttpRequest request) throws ProtocolException {
|
|||||||
}
|
}
|
||||||
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…
x
Reference in New Issue
Block a user