Implement CookieArray for handling decoded cookie name lookup (#1078)

This commit is contained in:
Zach Borboa
2026-04-19 22:20:08 -04:00
committed by GitHub
parent f50fbcfff5
commit 1d50c96014
5 changed files with 240 additions and 6 deletions
+5
View File
@@ -176,6 +176,11 @@ if ($test === 'http_basic_auth') {
setcookie('cookie1', 'scrumptious');
setcookie('cookie2', 'mouthwatering');
exit;
} elseif ($test === 'encoded_cookie') {
header('Set-Cookie: dingus=foo%3Bbar; path=/');
header('Set-Cookie: a%3Bb=foo%3Bbar; path=/', false);
header('Set-Cookie: spaced=hello%20world; path=/', false);
exit;
} elseif ($test === 'response_header') {
header('Content-Type: application/json');
header('ETag: ' . md5('worldpeace'));