Minor generics tweak
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@755398 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8e409a71d1
commit
48634b1b4b
|
@ -67,11 +67,13 @@ public class RequestDefaultHeaders implements HttpRequestInterceptor {
|
|||
}
|
||||
|
||||
// Add default headers
|
||||
Collection<?> defHeaders = (Collection<?>) request.getParams().getParameter(
|
||||
@SuppressWarnings("unchecked")
|
||||
Collection<Header> defHeaders = (Collection<Header>) request.getParams().getParameter(
|
||||
ClientPNames.DEFAULT_HEADERS);
|
||||
|
||||
if (defHeaders != null) {
|
||||
for (Object defHeader : defHeaders) {
|
||||
request.addHeader((Header) defHeader);
|
||||
for (Header defHeader : defHeaders) {
|
||||
request.addHeader(defHeader);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue