From 3d9f7fd067faa468f0eb41c8c724ae3de3472cee Mon Sep 17 00:00:00 2001 From: gggeek Date: Wed, 4 Mar 2020 09:58:47 +0000 Subject: [PATCH] try better sending of cookies with spaces in their value --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 4f2a61a..3d29093 100644 --- a/src/Client.php +++ b/src/Client.php @@ -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; -- 2.43.0