daniel hahler <python-b...@thequod.de> added the comment:
Another example of a value that fails to parse is if "-0000" is used instead of "GMT", which is the case with GitHub: > Set-Cookie: has_recent_activity=1; path=/; expires=Mon, 22 Apr 2019 23:27:18 > -0000 So using a regular expression here to only parse the sane-cookie-date format (that is recommended for output) is wrong. The last change to it was in 2012 only (https://github.com/python/cpython/commit/aeeba2629aa52e4e73e19a1502b3d3133ea68dec) ---------- nosy: +blueyed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35824> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com