aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2017-04-26 14:42:48 +0200
committerGitHub <noreply@github.com>2017-04-26 14:42:48 +0200
commit0f9081b18de9afe9f22020e9b7a9cda1dabc7fb8 (patch)
tree6d4ed46a4f297cb819b0ccb12d5abe28873266b6 /test
parentd5ea08db6244e4957f9134a4313a90d3efb8dde9 (diff)
parent87610cc8b280c191ec7efbe43679145fbea6aa77 (diff)
downloadmitmproxy-0f9081b18de9afe9f22020e9b7a9cda1dabc7fb8.tar.gz
mitmproxy-0f9081b18de9afe9f22020e9b7a9cda1dabc7fb8.tar.bz2
mitmproxy-0f9081b18de9afe9f22020e9b7a9cda1dabc7fb8.zip
Merge pull request #2269 from mhils/issue-2250
fix #2250, add type info to cookie module
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/net/http/test_cookies.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/mitmproxy/net/http/test_cookies.py b/test/mitmproxy/net/http/test_cookies.py
index 5c30dbdb..680a5033 100644
--- a/test/mitmproxy/net/http/test_cookies.py
+++ b/test/mitmproxy/net/http/test_cookies.py
@@ -283,6 +283,10 @@ def test_refresh_cookie():
c = "foo/bar=bla"
assert cookies.refresh_set_cookie_header(c, 0)
+ # https://github.com/mitmproxy/mitmproxy/issues/2250
+ c = ""
+ assert cookies.refresh_set_cookie_header(c, 60) == ""
+
@mock.patch('time.time')
def test_get_expiration_ts(*args):