aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_http.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2013-03-03 15:08:17 +1300
committerAldo Cortesi <aldo@nullcube.com>2013-03-03 15:08:17 +1300
commit7b9300743e879a8a2e35f5786b23a17261350ff9 (patch)
treecb8553d292c44201f9afa0402e86648b70917481 /test/test_http.py
parentcd4ed8530fa04fcbd54009e9db6ad9ea2518a10b (diff)
downloadmitmproxy-7b9300743e879a8a2e35f5786b23a17261350ff9.tar.gz
mitmproxy-7b9300743e879a8a2e35f5786b23a17261350ff9.tar.bz2
mitmproxy-7b9300743e879a8a2e35f5786b23a17261350ff9.zip
More parse_url solidification: check that port is in range 0-65535
Diffstat (limited to 'test/test_http.py')
-rw-r--r--test/test_http.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_http.py b/test/test_http.py
index f41a4e2d..061aeb22 100644
--- a/test/test_http.py
+++ b/test/test_http.py
@@ -296,6 +296,7 @@ def test_parse_url():
assert not http.parse_url("http://\xfafoo")
assert not http.parse_url("http:/\xc6/localhost:56121")
assert not http.parse_url("http://foo\0")
+ assert not http.parse_url("http://foo:999999")