mirror of
https://github.com/python/cpython
synced 2024-10-05 15:25:15 +00:00
Added test for patch #103473: test an unquoted cookie value containing '='
This commit is contained in:
parent
715346060a
commit
8b94b1c74a
|
@ -10,6 +10,10 @@ Set-Cookie: chips=ahoy;
|
|||
Set-Cookie: keebler="E=mc2; L=\"Loves\"; fudge=\012;";
|
||||
keebler 'E=mc2; L="Loves"; fudge=\n;' 'E=mc2; L="Loves"; fudge=\n;'
|
||||
Set-Cookie: keebler="E=mc2; L=\"Loves\"; fudge=\012;";
|
||||
<SimpleCookie: keebler='E=mc2'>
|
||||
Set-Cookie: keebler=E=mc2;
|
||||
keebler 'E=mc2' 'E=mc2'
|
||||
Set-Cookie: keebler=E=mc2;
|
||||
Set-Cookie: Customer="WILE_E_COYOTE"; Path=/acme;
|
||||
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
('chips=ahoy; vienna=finger', {'chips':'ahoy', 'vienna':'finger'}),
|
||||
('keebler="E=mc2; L=\\"Loves\\"; fudge=\\012;";',
|
||||
{'keebler' : 'E=mc2; L="Loves"; fudge=\012;'}),
|
||||
|
||||
# Check illegal cookies that have an '=' char in an unquoted value
|
||||
('keebler=E=mc2;', {'keebler' : 'E=mc2'})
|
||||
]
|
||||
|
||||
for data, dict in cases:
|
||||
|
|
Loading…
Reference in a new issue