diff options
Diffstat (limited to 'inc/HTTPClient.php')
-rw-r--r-- | inc/HTTPClient.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php index 092216c57..4aefcfe5a 100644 --- a/inc/HTTPClient.php +++ b/inc/HTTPClient.php @@ -597,13 +597,15 @@ class HTTPClient { // setups with this solution before, but we have no usable test for that and TLS should be the more // common crypto by now if (@stream_socket_enable_crypto($socket, true, STREAM_CRYPTO_METHOD_TLS_CLIENT)) { - $requesturl = $requestinfo['path']; + $requesturl = $requestinfo['path']. + (!empty($requestinfo['query'])?'?'.$requestinfo['query']:''); return true; } // if the above failed, this will most probably not work either, but we can try if (@stream_socket_enable_crypto($socket, true, STREAM_CRYPTO_METHOD_SSLv3_CLIENT)) { - $requesturl = $requestinfo['path']; + $requesturl = $requestinfo['path']. + (!empty($requestinfo['query'])?'?'.$requestinfo['query']:''); return true; } |