diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-04-23 08:23:51 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-04-23 08:23:51 +1200 |
commit | 42a87a1d8b3eeccfdd8e5e504f1cd4d90ae1dbfb (patch) | |
tree | deadd99d45bdd4e4806090485aa246bc955d1813 /test/test_http.py | |
parent | 4fb49c8e55cc3c64ac0d5cf8fb913518f1973162 (diff) | |
download | mitmproxy-42a87a1d8b3eeccfdd8e5e504f1cd4d90ae1dbfb.tar.gz mitmproxy-42a87a1d8b3eeccfdd8e5e504f1cd4d90ae1dbfb.tar.bz2 mitmproxy-42a87a1d8b3eeccfdd8e5e504f1cd4d90ae1dbfb.zip |
websockets: handshake checks only take headers
Diffstat (limited to 'test/test_http.py')
-rw-r--r-- | test/test_http.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_http.py b/test/test_http.py index 8b99c769..962eb9cb 100644 --- a/test/test_http.py +++ b/test/test_http.py @@ -412,10 +412,10 @@ def test_parse_http_basic_auth(): assert not http.parse_http_basic_auth(v) -def test_get_line(): +def test_get_request_line(): r = cStringIO.StringIO("\nfoo") - assert http.get_line(r) == "foo" - tutils.raises(tcp.NetLibDisconnect, http.get_line, r) + assert http.get_request_line(r) == "foo" + assert not http.get_request_line(r) class TestReadRequest(): |