summaryrefslogtreecommitdiffstats
path: root/Lib/http
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2016-07-10 13:49:49 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2016-07-10 13:49:49 (GMT)
commit290b42de73d09dadc50fcd213787a4ba5e8724a3 (patch)
treedd979f8fc1a07280d4a22d936ac29325a60f52d9 /Lib/http
parentf9efb8b18b689ff5ef7f12e6124f21532d799516 (diff)
parentd5b47fb8ce8acefaf952cfa60ec73a875e407e66 (diff)
downloadcpython-290b42de73d09dadc50fcd213787a4ba5e8724a3.zip
cpython-290b42de73d09dadc50fcd213787a4ba5e8724a3.tar.gz
cpython-290b42de73d09dadc50fcd213787a4ba5e8724a3.tar.bz2
[merge from 3.5] - Issue #27466: Change time format returned by
http.cookie.time2netscape, confirming the netscape cookie format.
Diffstat (limited to 'Lib/http')
-rw-r--r--Lib/http/cookiejar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py
index 265ccf9..4466d2e 100644
--- a/Lib/http/cookiejar.py
+++ b/Lib/http/cookiejar.py
@@ -120,7 +120,7 @@ def time2netscape(t=None):
dt = datetime.datetime.utcnow()
else:
dt = datetime.datetime.utcfromtimestamp(t)
- return "%s %02d-%s-%04d %02d:%02d:%02d GMT" % (
+ return "%s, %02d-%s-%04d %02d:%02d:%02d GMT" % (
DAYS[dt.weekday()], dt.day, MONTHS[dt.month-1],
dt.year, dt.hour, dt.minute, dt.second)