[issue3924] cookielib chokes on non-integer cookie version, should ignore it instead
John J Lee
report at bugs.python.org
Thu Oct 16 01:10:12 CEST 2008
John J Lee <jjlee at users.sourceforge.net> added the comment:
The sensible fix for this is to strip the quotes off, defaulting to
version 0 on failure to parse the version cookie-attribute. It's not
necessary to retain the original version string.
By the way, what you posted warning rather than a strictly unhandled
exception or "crash" -- it's a bug, but won't cause the program to stop.
And by "none of the cookies work after that", you mean that no cookies
in headers containing the quoted version cookie-attribute are accepted
by the cookiejar.
FWIW, this bug only affects RFC 2109 cookies, not RFC 2965 cookies.
----------
nosy: +jjlee
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3924>
_______________________________________
More information about the Python-bugs-list
mailing list