mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Fix #3502 by using email.utils.formatdate's usegmt argument.
This commit is contained in:
parent
8353f4a55a
commit
bcd1bb23f6
@ -186,7 +186,7 @@ class Response(message.Message):
|
||||
d = parsedate_tz(self.headers[i])
|
||||
if d:
|
||||
new = mktime_tz(d) + delta
|
||||
self.headers[i] = formatdate(new)
|
||||
self.headers[i] = formatdate(new, usegmt=True)
|
||||
c = []
|
||||
for set_cookie_header in self.headers.get_all("set-cookie"):
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user