diff options
author | Andreas Gohr <andi@splitbrain.org> | 2023-04-26 19:38:14 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2023-04-26 20:23:44 +0200 |
commit | 605810ee2fba6c1a323e320dde2c78747b3e5f3a (patch) | |
tree | 0bfc7c0f0c557bb1a470820104778ce80557e4b5 /inc/HTTP | |
parent | e002c058d76a03858d85f6f58a9bd99f6f09cb90 (diff) | |
download | dokuwiki-605810ee2fba6c1a323e320dde2c78747b3e5f3a.tar.gz dokuwiki-605810ee2fba6c1a323e320dde2c78747b3e5f3a.zip |
use local squid docker instance for proxy testing
Diffstat (limited to 'inc/HTTP')
-rw-r--r-- | inc/HTTP/HTTPClient.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/HTTP/HTTPClient.php b/inc/HTTP/HTTPClient.php index 20305fc06..05383d33e 100644 --- a/inc/HTTP/HTTPClient.php +++ b/inc/HTTP/HTTPClient.php @@ -554,7 +554,7 @@ class HTTPClient { } if (@stream_socket_enable_crypto($socket, true, $cryptoMethod)) { - $requesturl = $requestinfo['path']. + $requesturl = ($requestinfo['path'] ?? '/'). (!empty($requestinfo['query'])?'?'.$requestinfo['query']:''); return true; } |