aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_http.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2013-01-05 20:06:55 +1300
committerAldo Cortesi <aldo@nullcube.com>2013-01-05 20:06:55 +1300
commitd3b46feb6011c106b42d297b1a4807d187991345 (patch)
tree13d8dfa45cbec811a15fbe8b7a54e0445bae7ca9 /test/test_http.py
parentddc08efde1a5132734f1f06481a97e484cc368e3 (diff)
downloadmitmproxy-d3b46feb6011c106b42d297b1a4807d187991345.tar.gz
mitmproxy-d3b46feb6011c106b42d297b1a4807d187991345.tar.bz2
mitmproxy-d3b46feb6011c106b42d297b1a4807d187991345.zip
Handle non-integer port error in parse_init_connect correctly
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 a6161fbc..ed16fb4a 100644
--- a/test/test_http.py
+++ b/test/test_http.py
@@ -139,6 +139,7 @@ def test_parse_init_connect():
assert not http.parse_init_connect("GET host.com:443 HTTP/1.0")
assert not http.parse_init_connect("CONNECT host.com443 HTTP/1.0")
assert not http.parse_init_connect("CONNECT host.com:443 foo/1.0")
+ assert not http.parse_init_connect("CONNECT host.com:foo HTTP/1.0")
def test_prase_init_proxy():