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:
Francois-Xavier Bonnet 2013-02-13 09:51:24 +00:00
parent f4c45c1e6f
commit 5fbe5ea46d

View File

@ -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;
}
}