1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-20 11:16:36 +02:00

resolve_redirects: fix previous

This commit is contained in:
Andrew Dolgov 2020-09-20 18:14:34 +03:00
parent d2867d887a
commit 486f1d84ed

View File

@ -2009,8 +2009,6 @@
return false;
if (version_compare(PHP_VERSION, '7.1.0', '>=')) {
$context = stream_context_create($context_options);
$context_options = array(
'http' => array(
'header' => array(
@ -2026,6 +2024,8 @@
$context_options['http']['proxy'] = _HTTP_PROXY;
}
$context = stream_context_create($context_options);
$headers = get_headers($url, 0, $context);
} else {
$headers = get_headers($url, 0);