Skip to content

Commit d3e44f5

Browse files
committed
tests: accepts HttpOnly
1 parent c7ae88a commit d3e44f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Http/Response.setCookie.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ $response = new Http\Response;
2121

2222
$response->setCookie('test', 'value', 0);
2323
$headers = array_values(array_diff(headers_list(), $old, ['Set-Cookie:']));
24+
$headers = str_replace('HttpOnly', 'httponly', $headers);
2425
Assert::same( [
2526
'Set-Cookie: test=value; path=/; httponly',
2627
], $headers );
2728

2829

2930
$response->setCookie('test', 'newvalue', 0);
3031
$headers = array_values(array_diff(headers_list(), $old, ['Set-Cookie:']));
32+
$headers = str_replace('HttpOnly', 'httponly', $headers);
3133
Assert::same( [
3234
'Set-Cookie: test=newvalue; path=/; httponly',
3335
], $headers );

0 commit comments

Comments
 (0)