[issue35824] http.cookies._CookiePattern modifying regular expressions
daniel hahler
report at bugs.python.org
Mon Apr 22 19:08:19 EDT 2019
daniel hahler <python-bugs at thequod.de> added the comment:
http.cookiejar parses this correctly, using http2time:
>>> import http.cookiejar
>>> http.cookiejar.parse_ns_headers(["has_recent_activity=1; path=/; expires=Mon, 22 Apr 2019 23:27:18 -0000"])
[[('has_recent_activity', '1'), ('path', '/'), ('expires', 1555975638), ('version', '0')]]
Ref: https://github.com/python/cpython/blob/9f316bd9684d27b7e21fbf43ca86dc5e65dac4af/Lib/http/cookiejar.py#L204-L249
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35824>
_______________________________________
More information about the Python-bugs-list
mailing list