mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 19:42:41 +00:00
Add support for key => value cookies.
This makes using simple arrays easier, and I feel it is a long standing omission from HttpSocket. Fixes #3771
This commit is contained in:
parent
d01d291d13
commit
4d8dd12449
2 changed files with 9 additions and 3 deletions
|
@ -1590,9 +1590,10 @@ class HttpSocketTest extends CakeTestCase {
|
|||
'people' => array(
|
||||
'value' => 'jim,jack,johnny;',
|
||||
'path' => '/accounts'
|
||||
)
|
||||
),
|
||||
'key' => 'value'
|
||||
);
|
||||
$expect = "Cookie: foo=bar; people=jim,jack,johnny\";\"\r\n";
|
||||
$expect = "Cookie: foo=bar; people=jim,jack,johnny\";\"; key=value\r\n";
|
||||
$result = $this->Socket->buildCookies($cookies);
|
||||
$this->assertEquals($expect, $result);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue