[docs] [issue19670] SimpleCookie Generates Non-RFC6265-Compliant Cookies

Martin Panter report at bugs.python.org
Sat Jan 26 19:48:38 EST 2019


Martin Panter <vadmium+py at gmail.com> added the comment:

I think the solution here is to document what “SimpleCookie.value_encode” really does: RFC 2109 quoted-string escaping. If you want to a generate RFC-6265-compliant Set-Cookie string, do not include non-compliant characters in the cookie value, and consider using BaseCookie rather than SimpleCookie, especially if your “morsel” values are enclosed in double quotes.

----------
assignee:  -> docs at python
components: +Documentation
nosy: +docs at python, martin.panter

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue19670>
_______________________________________


More information about the docs mailing list