[New-bugs-announce] [issue15080] Cookie library doesn't parse date properly
Jeremy Gillick
report at bugs.python.org
Fri Jun 15 22:20:56 CEST 2012
New submission from Jeremy Gillick <j_gillick at yahoo.com>:
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 <report at bugs.python.org>
<http://bugs.python.org/issue15080>
_______________________________________
More information about the New-bugs-announce
mailing list