aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/HTTP
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2023-04-26 19:38:14 +0200
committerAndreas Gohr <andi@splitbrain.org>2023-04-26 20:23:44 +0200
commit605810ee2fba6c1a323e320dde2c78747b3e5f3a (patch)
tree0bfc7c0f0c557bb1a470820104778ce80557e4b5 /inc/HTTP
parente002c058d76a03858d85f6f58a9bd99f6f09cb90 (diff)
downloaddokuwiki-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.php2
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;
}