mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Fix Issue2193 - Allow ":" character in Cookie NAME values
This commit is contained in:
parent
b8c0206bd4
commit
3a441c1bed
3 changed files with 12 additions and 1 deletions
|
|
@ -34,6 +34,15 @@ class CookieTests(unittest.TestCase):
|
|||
'dict': {'keebler' : 'E=mc2'},
|
||||
'repr': "<SimpleCookie: keebler='E=mc2'>",
|
||||
'output': 'Set-Cookie: keebler=E=mc2'},
|
||||
|
||||
# Cookies with ':' character in their name. Though not mentioned in
|
||||
# RFC, servers / browsers allow it.
|
||||
|
||||
{'data': 'key:term=value:term',
|
||||
'dict': {'key:term' : 'value:term'},
|
||||
'repr': "<SimpleCookie: key:term='value:term'>",
|
||||
'output': 'Set-Cookie: key:term=value:term'},
|
||||
|
||||
]
|
||||
|
||||
for case in cases:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue