[issue41945] http.cookies.SimpleCookie.parse error after [keys]
Jan Novak
report at bugs.python.org
Thu Nov 5 05:44:00 EST 2020
Jan Novak <xnovakj at seznam.cz> added the comment:
Possible patch, load parts one by one:
http_cookie = 'id=12345; [object Object]=data; something=not_loaded'
for cookie_key in http_cookie.split(';'):
c.load(cookie_key)
print c
Set-Cookie: id=12345
Set-Cookie: something=not_loaded
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41945>
_______________________________________
More information about the Python-bugs-list
mailing list