diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-22 13:04:45 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-22 15:30:12 +0200 |
commit | cedc0407de2fc4018c3d1852fc5678d532dc8e6e (patch) | |
tree | c6c8ecdf96c0808cd5feb75a5804773e34d018db /test/test_proxy.py | |
parent | bb265d0c407a635bc0eb6357648897e3ecaf0013 (diff) | |
download | mitmproxy-cedc0407de2fc4018c3d1852fc5678d532dc8e6e.tar.gz mitmproxy-cedc0407de2fc4018c3d1852fc5678d532dc8e6e.tar.bz2 mitmproxy-cedc0407de2fc4018c3d1852fc5678d532dc8e6e.zip |
refactor to use netlib.http protocols
Diffstat (limited to 'test/test_proxy.py')
-rw-r--r-- | test/test_proxy.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_proxy.py b/test/test_proxy.py index 5a3bb1ab..01fbe953 100644 --- a/test/test_proxy.py +++ b/test/test_proxy.py @@ -31,7 +31,9 @@ class TestServerConnection: f.server_conn = sc f.request.path = "/p/200:da" sc.send(f.request.assemble()) - assert http.http1.read_response(sc.rfile, f.request.method, 1000) + + protocol = http.http1.HTTP1Protocol(rfile=sc.rfile) + assert protocol.read_response(f.request.method, 1000) assert self.d.last_log() sc.finish() |