We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb0d5c3 commit 2a19acdCopy full SHA for 2a19acd
Lib/http/cookies.py
@@ -605,8 +605,16 @@ class SimpleCookie(BaseCookie):
605
received from HTTP are kept as strings.
606
"""
607
def value_decode(self, val):
608
+ """
609
+ Return an unquoted string, from the cookie header in a reversed fasion of value_encode.
610
611
+
612
return _unquote(val), val
613
614
def value_encode(self, val):
615
616
+ Return an escaped quoted string, if needed, for the cookie header usage.
617
+ Will include non-compliant characters in the cookie value if exist.
618
619
strval = str(val)
620
return strval, _quote(strval)
0 commit comments