From acad5e14cc2f0a3b203f1b522b631b84ec8c8bf3 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 8 Jul 2024 04:36:04 +0300 Subject: [PATCH 1/2] fix query format --- src/Client/Request.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Client/Request.php b/src/Client/Request.php index 560a1fd..b0c37ce 100644 --- a/src/Client/Request.php +++ b/src/Client/Request.php @@ -184,7 +184,10 @@ class Request $this->_host, $this->_port, $this->_path, - $this->_query + $this->_query ? sprintf( + '?%s', + $this->_query + ) : null ) ); From 597a105be779076561302e35a4ea27235eeb07b3 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 3 Aug 2024 02:17:26 +0300 Subject: [PATCH 2/2] update default options --- src/Client/Request.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Client/Request.php b/src/Client/Request.php index b0c37ce..183ce56 100644 --- a/src/Client/Request.php +++ b/src/Client/Request.php @@ -17,8 +17,10 @@ class Request [ 'ssl' => [ - 'verify_peer' => false, - 'verify_peer_name' => false + 'allow_self_signed' => true, + 'disable_compression' => true, + 'verify_peer_name' => false, + 'verify_peer' => false ] ];