diff options
| author | Philipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de> | 2025-03-20 07:46:22 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-03-20 08:46:45 +0100 |
| commit | e04e4f8af263bff7d81c789bd61497d04be87e4e (patch) | |
| tree | 5d48cc759b0b59c6955124673a2175e93dc4c8ac /lib | |
| parent | 78c446ad3f5aa41f48ec2592475e0c673ecac514 (diff) | |
Resolve "Probleme mit get_default_http_stream_context() und Proxy"
Closes #5388
Merge request studip/studip!4054
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/functions.php b/lib/functions.php index ea9b7b1..8d639e8 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -1836,10 +1836,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); } /** |
