summaryrefslogtreecommitdiffstats
path: root/Lib/http/cookiejar.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2016-07-10 13:45:38 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2016-07-10 13:45:38 (GMT)
commitd5b47fb8ce8acefaf952cfa60ec73a875e407e66 (patch)
treea5b41788d801d6e23fa7a4e532c5a42c1d8f311f /Lib/http/cookiejar.py
parent1a2b24f02dfd4eb3383f6ae2b59e5a4eb66fd5bb (diff)
downloadcpython-d5b47fb8ce8acefaf952cfa60ec73a875e407e66.zip
cpython-d5b47fb8ce8acefaf952cfa60ec73a875e407e66.tar.gz
cpython-d5b47fb8ce8acefaf952cfa60ec73a875e407e66.tar.bz2
Issue #27466: Change time format returned by http.cookie.time2netscape,
confirming the netscape cookie format.
Diffstat (limited to 'Lib/http/cookiejar.py')
-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)