[issue37277] http.cookies.SimpleCookie does not parse attribute without value (rfc2109)
Karthikeyan Singaravelan
report at bugs.python.org
Fri Jun 14 05:07:19 EDT 2019
Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:
This could be due to issue22796. See also https://bugs.python.org/issue27828#msg273355.
➜ cpython git:(master) ✗ git checkout b1e36073cdde71468efa27e88016aa6dd46f3ec7~1 Lib/http/cookies.py
➜ cpython git:(master) ✗ ./python.exe -c 'from http.cookies import SimpleCookie; print(SimpleCookie("a=1; test;"))' # parses a=1
Set-Cookie: a=1
➜ cpython git:(master) ✗ git checkout b1e36073cdde71468efa27e88016aa6dd46f3ec7 Lib/http/cookies.py
➜ cpython git:(master) ✗ ./python.exe -c 'from http.cookies import SimpleCookie; print(SimpleCookie("a=1; test;"))' # No value printed
----------
nosy: +xtreak
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37277>
_______________________________________
More information about the Python-bugs-list
mailing list