diff options
author | Maximilian Hils <git@maximilianhils.com> | 2019-07-17 22:43:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-17 22:43:14 +0200 |
commit | 69a3f772565b43ceaa01c9ddd72a0d0ff5c94acb (patch) | |
tree | 8f45622df9ff462217b91f497ea7ae8c90ea3b14 /test | |
parent | 386772f8fc38a6850e3774ff2526af2bba7c333f (diff) | |
parent | a8489466c1b10af6a7510759362b9b930e6852f0 (diff) | |
download | mitmproxy-69a3f772565b43ceaa01c9ddd72a0d0ff5c94acb.tar.gz mitmproxy-69a3f772565b43ceaa01c9ddd72a0d0ff5c94acb.tar.bz2 mitmproxy-69a3f772565b43ceaa01c9ddd72a0d0ff5c94acb.zip |
Merge pull request #3525 from tonyb486/bugfix-dateheader
Fix #3502 by using email.utils.formatdate's usegmt argument.
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/net/http/test_response.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mitmproxy/net/http/test_response.py b/test/mitmproxy/net/http/test_response.py index f3470384..27c16be6 100644 --- a/test/mitmproxy/net/http/test_response.py +++ b/test/mitmproxy/net/http/test_response.py @@ -148,7 +148,7 @@ class TestResponseUtils: def test_refresh(self): r = tresp() n = time.time() - r.headers["date"] = email.utils.formatdate(n) + r.headers["date"] = email.utils.formatdate(n, usegmt=True) pre = r.headers["date"] r.refresh(946681202) assert pre == r.headers["date"] |