aboutsummaryrefslogtreecommitdiffstats
path: root/test/mitmproxy/net
diff options
context:
space:
mode:
authorAnthony Biondo <tonyb@tonybox.net>2019-04-16 22:11:27 -0400
committerAnthony Biondo <tonyb@tonybox.net>2019-04-16 22:11:27 -0400
commita8489466c1b10af6a7510759362b9b930e6852f0 (patch)
tree7ef42e4f6626d2ca104e6fa0d4c20557a5c09bcf /test/mitmproxy/net
parentbcd1bb23f6d56367d0f22c035b85078467a17ca1 (diff)
downloadmitmproxy-a8489466c1b10af6a7510759362b9b930e6852f0.tar.gz
mitmproxy-a8489466c1b10af6a7510759362b9b930e6852f0.tar.bz2
mitmproxy-a8489466c1b10af6a7510759362b9b930e6852f0.zip
update formatdate for cookies and tests to use GMT formatting
Diffstat (limited to 'test/mitmproxy/net')
-rw-r--r--test/mitmproxy/net/http/test_response.py2
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"]