git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ce28d0
)
try better sending of cookies with spaces in their value
author
gggeek
<giunta.gaetano@gmail.com>
Wed, 4 Mar 2020 09:58:47 +0000
(09:58 +0000)
committer
gggeek
<giunta.gaetano@gmail.com>
Wed, 4 Mar 2020 09:58:47 +0000
(09:58 +0000)
src/Client.php
patch
|
blob
|
history
diff --git
a/src/Client.php
b/src/Client.php
index
4f2a61a
..
3d29093
100644
(file)
--- 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'] =
raw
urlencode($value);
if ($path || $domain || $port) {
$this->cookies[$name]['path'] = $path;
$this->cookies[$name]['domain'] = $domain;