default connect_timeout to 5 instead of extlib 10

This commit is contained in:
Mikael Nordfeldth
2016-01-18 22:01:45 +01:00
parent 64e74d527f
commit 89dd44bf3e
2 changed files with 2 additions and 0 deletions

View File

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