aboutsummaryrefslogtreecommitdiff
path: root/lib/functions.php
diff options
context:
space:
mode:
authorPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2025-03-20 07:46:22 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-03-20 07:46:22 +0000
commit40fce67f92a83ac0c6a0c418975cd6710c241b64 (patch)
tree86ffad1bcc125ed5f8fd6f6b03f515338952a08c /lib/functions.php
parent2eefb15df267a6e7db6add5441b901ef80ff9f31 (diff)
Resolve "Probleme mit get_default_http_stream_context() und Proxy"
Closes #5388 Merge request studip/studip!4054
Diffstat (limited to 'lib/functions.php')
-rw-r--r--lib/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/functions.php b/lib/functions.php
index d03c266..c9de2c7 100644
--- a/lib/functions.php
+++ b/lib/functions.php
@@ -1477,10 +1477,10 @@ function get_default_http_stream_context($url = '')
}
if ($proxy) {
$opts = ['http' => ['proxy' => 'tcp://' . $proxy]];
+ return stream_context_create($opts);
} else {
- $opts = [];
+ return stream_context_get_default();
}
- return stream_context_get_default($opts);
}
/**