hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1530309 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/params/HttpClientParamConfig.java
Date Tue, 08 Oct 2013 15:30:14 GMT
Author: olegk
Date: Tue Oct  8 15:30:13 2013
New Revision: 1530309

URL: http://svn.apache.org/r1530309
Log:
HTTPCLIENT-1418: fixed class cast exception in HttpClientParamConfig#getRequestConfig

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/params/HttpClientParamConfig.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/params/HttpClientParamConfig.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/params/HttpClientParamConfig.java?rev=1530309&r1=1530308&r2=1530309&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/params/HttpClientParamConfig.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/params/HttpClientParamConfig.java
Tue Oct  8 15:30:13 2013
@@ -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))



Mime
View raw message