aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-05-20 12:06:51 +0800
committerSenthil Kumaran <senthil@uthcode.com>2012-05-20 12:06:51 +0800
commit0b943a18ef3c175836fde6403782c982ef2ff776 (patch)
treeae9b43b006647d2da9771b94477f89011645038f /Lib/http/cookies.py
parentIssue #14849: setup Element data members to be assignable in subclasses (diff)
parent Issue #14426: Correct the Date format in Expires attribute of Set-Cookie. Pa... (diff)
downloadcpython-0b943a18ef3c175836fde6403782c982ef2ff776.tar.gz
cpython-0b943a18ef3c175836fde6403782c982ef2ff776.tar.bz2
cpython-0b943a18ef3c175836fde6403782c982ef2ff776.zip
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 d73f79a665c..34d2f588537 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)