mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-23 12:15:23 +02:00
Merge remote-tracking branch 'origin/master' into fix1
This commit is contained in:
commit
a535121ab1
5 changed files with 128 additions and 1 deletions
|
@ -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')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue