We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b133b9c commit 07a2d20Copy full SHA for 07a2d20
tests/Http/Response.setCookie.phpt
@@ -21,13 +21,15 @@ $response = new Http\Response;
21
22
$response->setCookie('test', 'value', 0);
23
$headers = array_values(array_diff(headers_list(), $old, array('Set-Cookie:')));
24
+$headers = str_replace('HttpOnly', 'httponly', $headers);
25
Assert::same( array(
26
'Set-Cookie: test=value; path=/; httponly',
27
), $headers );
28
29
30
$response->setCookie('test', 'newvalue', 0);
31
32
33
34
'Set-Cookie: test=newvalue; path=/; httponly',
35
0 commit comments