mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +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])
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user