HTTPCLIENT-1418: fixed class cast exception in HttpClientParamConfig#getRequestConfig

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1530309 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2013-10-08 15:30:13 +00:00
parent 4f03bedbf8
commit bcd41d700f
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ public final class HttpClientParamConfig {
ClientPNames.HANDLE_AUTHENTICATION, true))
.setCircularRedirectsAllowed(params.getBooleanParameter(
ClientPNames.ALLOW_CIRCULAR_REDIRECTS, false))
.setConnectionRequestTimeout(params.getIntParameter(
.setConnectionRequestTimeout((int) params.getLongParameter(
ClientPNames.CONN_MANAGER_TIMEOUT, 0))
.setCookieSpec((String) params.getParameter(
ClientPNames.COOKIE_POLICY))