mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 22:11:28 +00:00
fetch_file_contents: fix typos
This commit is contained in:
@@ -296,7 +296,7 @@
|
|||||||
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
|
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
|
||||||
curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT);
|
curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT);
|
||||||
curl_setopt($ch, CURLOPT_ENCODING , "gzip");
|
curl_setopt($ch, CURLOPT_ENCODING , "gzip");
|
||||||
curl_setopt($fp, CURLOPT_REFERER, $url);
|
curl_setopt($ch, CURLOPT_REFERER, $url);
|
||||||
|
|
||||||
if ($post_query) {
|
if ($post_query) {
|
||||||
curl_setopt($ch, CURLOPT_POST, true);
|
curl_setopt($ch, CURLOPT_POST, true);
|
||||||
@@ -308,9 +308,9 @@
|
|||||||
|
|
||||||
$contents = @curl_exec($ch);
|
$contents = @curl_exec($ch);
|
||||||
|
|
||||||
if (curl_errno($fp) === 23 || curl_errno($fp) === 61) {
|
if (curl_errno($ch) === 23 || curl_errno($ch) === 61) {
|
||||||
curl_setopt($fp, CURLOPT_ENCODING, 'none');
|
curl_setopt($ch, CURLOPT_ENCODING, 'none');
|
||||||
$contents = @curl_exec($fp);
|
$contents = @curl_exec($ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($contents === false) {
|
if ($contents === false) {
|
||||||
|
|||||||
Reference in New Issue
Block a user