summaryrefslogtreecommitdiffstats
path: root/Lib/http/cookies.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-05-20 04:05:16 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2012-05-20 04:05:16 (GMT)
commit00c2ec282e1653a67bb99c5f96eb2cbf64b19ab5 (patch)
tree3f59b680031202320fa1cf96bc1ef41c6e3d23c3 /Lib/http/cookies.py
parent079bfc962d838cb80a008ad3d949222256e1228d (diff)
downloadcpython-00c2ec282e1653a67bb99c5f96eb2cbf64b19ab5.zip
cpython-00c2ec282e1653a67bb99c5f96eb2cbf64b19ab5.tar.gz
cpython-00c2ec282e1653a67bb99c5f96eb2cbf64b19ab5.tar.bz2
Issue #14426: Correct the Date format in Expires attribute of Set-Cookie. Patch by Federico Reghenzani and Müte Invert
Diffstat (limited to 'Lib/http/cookies.py')
-rw-r--r--Lib/http/cookies.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/http/cookies.py b/Lib/http/cookies.py
index 93da627..2aeb8d3 100644
--- a/Lib/http/cookies.py
+++ b/Lib/http/cookies.py
@@ -301,7 +301,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)