Skip to content
Myr

Keep non RFC cookie key characters separate.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Moved the characters that we accept in keys but that the RFC forbids into a separate string to keep track of them.

authored by Cory Benfield · committed by Cory Benfield · parent f72c13f · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/packages/oreos/monkeys.py+1 added-1 removed
251 unmodified lines
252# _LegalChars is the list of chars which don't require "'s253# _Translator hash-table for fast quoting254#255_LegalChars = ( string.ascii_letters + string.digits + 256 "!#$%&'*+-.^_`|~[]_:{}" )256 "!#$%&'*+-.^_`|~_" + "[]:{}")257_Translator = {258 '\000' : '\\000', '\001' : '\\001', '\002' : '\\002',259 '\003' : '\\003', '\004' : '\\004', '\005' : '\\005',260 '\006' : '\\006', '\007' : '\\007', '\010' : '\\010',
511 unmodified lines