[New-bugs-announce] [issue14426] Lib/Cookie.py date format problem

Müte Invert report at bugs.python.org
Tue Mar 27 19:37:58 CEST 2012


New submission from Müte Invert <valtron2000 at gmail.com>:

Cookie.py doesn't format the expiry date correctly. The problematic line is: http://hg.python.org/cpython/file/2.7/Lib/Cookie.py#l393, which should read 'return "%s, %02d %3s %4d %02d:%02d:%02d GMT" % \' (spaces instead of dashes). The RFC specifying the date format is http://tools.ietf.org/html/rfc2616#section-3.3.1; you can see that with dashes, only a 2-digit year is allowed (date2).

----------
components: Library (Lib)
messages: 156946
nosy: Müte.Invert
priority: normal
severity: normal
status: open
title: Lib/Cookie.py date format problem
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14426>
_______________________________________


More information about the New-bugs-announce mailing list