diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2012-05-20 12:02:44 +0800 |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2012-05-20 12:02:44 +0800 |
commit | f439a366308f64927d54e03272e8294463b68880 (patch) | |
tree | 728c2dcb8711605be6be82161954ef25cdd5a6c7 /Lib/Cookie.py | |
parent | 7961bb304370dddd896877155bc13e2828525195 (diff) | |
download | cpython-git-f439a366308f64927d54e03272e8294463b68880.tar.gz |
Issue #14426: Correct the Date format in Expires attribute of Set-Cookie. Patch by Federico Reghenzani and Müte Invert
Diffstat (limited to 'Lib/Cookie.py')
-rw-r--r-- | Lib/Cookie.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/Cookie.py b/Lib/Cookie.py index 323450b38a..616377cf73 100644 --- a/Lib/Cookie.py +++ b/Lib/Cookie.py @@ -390,7 +390,7 @@ def _getdate(future=0, weekdayname=_weekdayname, monthname=_monthname): from time import gmtime, time now = time() year, month, day, hh, mm, ss, wd, y, z = gmtime(now + future) - return "%s, %02d-%3s-%4d %02d:%02d:%02d GMT" % \ + return "%s, %02d %3s %4d %02d:%02d:%02d GMT" % \ (weekdayname[wd], day, monthname[month], year, hh, mm, ss) |