kentfredric (owner)

Revisions

gist: 221171 Download_button fork
public
Public Clone URL: git://gist.github.com/221171.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
I wrote a simple test server to demonstrate plainly how browsers react to various cookies, just to make sure we're not making things up, and it confers with our logic, that adding more cookie headers with the same value result in replacing the key.
 
http://gist.github.com/221171
 
as such, the test
 
ok($req->header("Cookie"), "x=bcd; foo=1; foo=1");
 
is something that should never happen, at least on firefox.
 
I can't imagine a sane case where you'd actually want to store the same cookie with the same key name twice, with either differing or the same value ... I think I shall report this as a bug.