aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_flow.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-09-28 14:55:13 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-09-28 14:55:13 +0200
commitc6811bd0e854a91bc0c3f9cda676818bd5c76a5c (patch)
tree90ec995638ef16cab9e715bc060c22ffbe821715 /test/test_flow.py
parent86ef19b450ec25d420db8ac28ddfa6f4bd1c9a08 (diff)
downloadmitmproxy-c6811bd0e854a91bc0c3f9cda676818bd5c76a5c.tar.gz
mitmproxy-c6811bd0e854a91bc0c3f9cda676818bd5c76a5c.tar.bz2
mitmproxy-c6811bd0e854a91bc0c3f9cda676818bd5c76a5c.zip
fix #773
Diffstat (limited to 'test/test_flow.py')
-rw-r--r--test/test_flow.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_flow.py b/test/test_flow.py
index 1d5cc354..d052a8e8 100644
--- a/test/test_flow.py
+++ b/test/test_flow.py
@@ -1155,6 +1155,11 @@ class TestResponse:
c = "MOO=BAR; Expires=Tue, 08-Mar-2011 00:20:38 GMT; Path=foo.com; Secure"
assert "00:21:38" in r._refresh_cookie(c, 60)
+ # https://github.com/mitmproxy/mitmproxy/issues/773
+ c = ">=A"
+ with tutils.raises(ValueError):
+ r._refresh_cookie(c, 60)
+
def test_replace(self):
r = HTTPResponse.wrap(netlib.tutils.tresp())
r.headers["Foo"] = "fOo"