diff options
author | Tran Tien Dat <peter.trantiendat@gmail.com> | 2018-02-21 19:58:29 +0800 |
---|---|---|
committer | Tran Tien Dat <peter.trantiendat@gmail.com> | 2018-02-21 19:58:29 +0800 |
commit | 97e534e76b189176bf704098673f33079f68b14a (patch) | |
tree | 31aa0b595e494838de2b62b643581fedc8b6feec /test | |
parent | 95c160ac131e235644c12795dc66b46f9b4478cd (diff) | |
download | mitmproxy-97e534e76b189176bf704098673f33079f68b14a.tar.gz mitmproxy-97e534e76b189176bf704098673f33079f68b14a.tar.bz2 mitmproxy-97e534e76b189176bf704098673f33079f68b14a.zip |
Fix #2829
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/net/http/test_cookies.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/mitmproxy/net/http/test_cookies.py b/test/mitmproxy/net/http/test_cookies.py index e12b0f00..74233cca 100644 --- a/test/mitmproxy/net/http/test_cookies.py +++ b/test/mitmproxy/net/http/test_cookies.py @@ -143,6 +143,27 @@ def test_cookie_roundtrips(): def test_parse_set_cookie_pairs(): pairs = [ [ + "=", + [[ + ["", ""] + ]] + ], + [ + "=;foo=bar", + [[ + ["", ""], + ["foo", "bar"] + ]] + ], + [ + "=;=;foo=bar", + [[ + ["", ""], + ["", ""], + ["foo", "bar"] + ]] + ], + [ "=uno", [[ ["", "uno"] |