projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f72c13f
)
Keep non RFC cookie key characters separate.
author
Cory Benfield
<lukasaoz@gmail.com>
Tue, 14 Feb 2012 10:25:40 +0000
(10:25 +0000)
committer
Cory Benfield
<lukasaoz@gmail.com>
Tue, 14 Feb 2012 10:25:40 +0000
(10:25 +0000)
Moved the characters that we accept in keys but that the RFC forbids
into a separate string to keep track of them.
requests/packages/oreos/monkeys.py
patch
|
blob
|
history
diff --git
a/requests/packages/oreos/monkeys.py
b/requests/packages/oreos/monkeys.py
index
54975c8
..
948b54c
100644
(file)
--- a/
requests/packages/oreos/monkeys.py
+++ b/
requests/packages/oreos/monkeys.py
@@
-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',