X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fhttpclient.php;h=c251a03d4551e0ef0a209050b691793a8771ad85;hb=89dd44bf3e6b5774497d7fdcd56d0ebc5cc87ffa;hp=b386ce39875e991d08ed5fc0db4deaf2a5b7039b;hpb=64f2f3d976e344d3bfa2dbddb937c90a0c4fe55c;p=quix0rs-gnu-social.git diff --git a/lib/httpclient.php b/lib/httpclient.php index b386ce3987..c251a03d45 100644 --- a/lib/httpclient.php +++ b/lib/httpclient.php @@ -121,6 +121,7 @@ class HTTPClient extends HTTP_Request2 function __construct($url=null, $method=self::METHOD_GET, $config=array()) { + $this->config['connect_timeout'] = common_config('http', 'connect_timeout') ?: $this->config['connect_timeout']; $this->config['max_redirs'] = 10; $this->config['follow_redirects'] = true; @@ -360,4 +361,4 @@ class HTTPClient extends HTTP_Request2 } while ($maxRedirs); return new GNUsocial_HTTPResponse($response, $this->getUrl(), $redirs); } -} \ No newline at end of file +}