New submission from Jeremy Gillick <[email protected]>:
The cookie library doesn't seem to support the standard date format (RFC 822)
for the expire property while parsing a cookie.
For example, in the Python prompt:
>>> import Cookie
>>> cookie = Cookie.SimpleCookie('bcookie="123"; Expires=Sat, 14-Jun-2014
23:03:13 GMT;')
>>> cookie['bcookie']['expires']
'Sat,'
That is a standard header, but it only processes the date up to the first space.
----------
components: Library (Lib)
messages: 162932
nosy: jgillick
priority: normal
severity: normal
status: open
title: Cookie library doesn't parse date properly
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue15080>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com