aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/contents.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/contents.php b/lib/contents.php
index e16f72ba..c5c95371 100644
--- a/lib/contents.php
+++ b/lib/contents.php
@@ -140,6 +140,7 @@ function getContents($url, $header = array(), $opts = array(), $returnHeader = f
}
curl_setopt($ch, CURLOPT_USERAGENT, Configuration::getConfig('http', 'useragent'));
+ curl_setopt($ch, CURLOPT_TIMEOUT, Configuration::getConfig('http', 'timeout'));
curl_setopt($ch, CURLOPT_ENCODING, '');
curl_setopt($ch, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
@@ -150,7 +151,6 @@ function getContents($url, $header = array(), $opts = array(), $returnHeader = f
foreach($opts as $key => $value) {
curl_setopt($ch, $key, $value);
}
-
}
if(defined('PROXY_URL') && !defined('NOPROXY')) {