mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Keep non RFC cookie key characters separate.
Moved the characters that we accept in keys but that the RFC forbids into a separate string to keep track of them.
This commit is contained in:
@@ -253,7 +253,7 @@ class CookieError(Exception):
|
||||
# _Translator hash-table for fast quoting
|
||||
#
|
||||
_LegalChars = ( string.ascii_letters + string.digits +
|
||||
"!#$%&'*+-.^_`|~[]_:{}" )
|
||||
"!#$%&'*+-.^_`|~_" + "[]:{}")
|
||||
_Translator = {
|
||||
'\000' : '\\000', '\001' : '\\001', '\002' : '\\002',
|
||||
'\003' : '\\003', '\004' : '\\004', '\005' : '\\005',
|
||||
|
||||
Reference in New Issue
Block a user