diff --git a/src/Client/Request.php b/src/Client/Request.php index 560a1fd..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 ] ]; @@ -184,7 +186,10 @@ class Request $this->_host, $this->_port, $this->_path, - $this->_query + $this->_query ? sprintf( + '?%s', + $this->_query + ) : null ) );