mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-12 19:41:04 +02:00
fetch: return HTTP code when no curl_error() is available
This commit is contained in:
parent
6971ca08b2
commit
1818fc11a5
@ -419,6 +419,8 @@ class UrlHelper {
|
|||||||
|
|
||||||
if (curl_errno($ch) != 0) {
|
if (curl_errno($ch) != 0) {
|
||||||
self::$fetch_last_error .= "; " . curl_errno($ch) . " " . curl_error($ch);
|
self::$fetch_last_error .= "; " . curl_errno($ch) . " " . curl_error($ch);
|
||||||
|
} else {
|
||||||
|
self::$fetch_last_error = "HTTP Code: $http_code ";
|
||||||
}
|
}
|
||||||
|
|
||||||
self::$fetch_last_error_content = $contents;
|
self::$fetch_last_error_content = $contents;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user