mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-26 04:07:14 +00:00
HTTPCLIENT-1323: CachingHttpClient ignores params set on the request
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1445521 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f4c45c1e6f
commit
5fbe5ea46d
@ -38,6 +38,7 @@
|
||||
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 static HttpRequestWrapper wrap(final HttpRequest request) {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public HttpParams getParams() {
|
||||
if (this.params == null) {
|
||||
this.params = original.getParams().copy();
|
||||
}
|
||||
return this.params;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user