X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fhttpclient.php;h=819a5e6e0799140646ac01aa8c76cd6e0b058608;hb=586fb5a5175d7a10f5f78dd026434e48202e5451;hp=4891ff6440183b042ad8da20ed01b2739f44fa91;hpb=f0480c34d7e3d528fc559568ce6ac53c3b33f8f9;p=quix0rs-gnu-social.git diff --git a/lib/httpclient.php b/lib/httpclient.php index 4891ff6440..819a5e6e07 100644 --- a/lib/httpclient.php +++ b/lib/httpclient.php @@ -122,11 +122,12 @@ class HTTPClient extends HTTP_Request2 // responses... But the default in HTTP_Request2 is 0 for // some reason and should probably be considered a valid value. $this->config['timeout'] = common_config('http', 'timeout'); - common_debug('Using HTTPClient timeout value of '._ve($this->config['timeout'])); } else { common_log(LOG_ERR, 'config option http/timeout is not an integer value: '._ve(common_config('http', 'timeout'))); } - $this->config['connect_timeout'] = common_config('http', 'connect_timeout') ?: $this->config['connect_timeout']; + if (!empty(common_config('http', 'connect_timeout'))) { + $this->config['connect_timeout'] = common_config('http', 'connect_timeout'); + } $this->config['max_redirs'] = 10; $this->config['follow_redirects'] = true;