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 c7ae88a commit d3e44f5Copy full SHA for d3e44f5
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, ['Set-Cookie:']));
24
+$headers = str_replace('HttpOnly', 'httponly', $headers);
25
Assert::same( [
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