Fix #3502 by using email.utils.formatdate's usegmt argument.

This commit is contained in:
Anthony Biondo 2019-04-16 21:53:31 -04:00
parent 8353f4a55a
commit bcd1bb23f6

View File

@ -186,7 +186,7 @@ class Response(message.Message):
d = parsedate_tz(self.headers[i]) d = parsedate_tz(self.headers[i])
if d: if d:
new = mktime_tz(d) + delta new = mktime_tz(d) + delta
self.headers[i] = formatdate(new) self.headers[i] = formatdate(new, usegmt=True)
c = [] c = []
for set_cookie_header in self.headers.get_all("set-cookie"): for set_cookie_header in self.headers.get_all("set-cookie"):
try: try: