try better sending of cookies with spaces in their value
authorgggeek <giunta.gaetano@gmail.com>
Wed, 4 Mar 2020 09:58:47 +0000 (09:58 +0000)
committergggeek <giunta.gaetano@gmail.com>
Wed, 4 Mar 2020 09:58:47 +0000 (09:58 +0000)
src/Client.php

index 4f2a61a..3d29093 100644 (file)
@@ -395,7 +395,7 @@ class Client
      */
     public function setCookie($name, $value = '', $path = '', $domain = '', $port = null)
     {
-        $this->cookies[$name]['value'] = urlencode($value);
+        $this->cookies[$name]['value'] = rawurlencode($value);
         if ($path || $domain || $port) {
             $this->cookies[$name]['path'] = $path;
             $this->cookies[$name]['domain'] = $domain;