summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-20 18:14:34 +0300
committerAndrew Dolgov <[email protected]>2020-09-20 18:14:34 +0300
commit486f1d84ed16e99ff8e87f375a69d43bb70b90c3 (patch)
treece1acb9e4c5bb68fd95e4b54a968ee6811470703 /include
parentd2867d887a6b8baa1ed3cc04af0a5f42926c45e9 (diff)
resolve_redirects: fix previous
Diffstat (limited to 'include')
-rw-r--r--include/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php
index 136bccdf6..0ddf96430 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -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);