aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_proxy.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2015-08-01 11:38:33 +1200
committerAldo Cortesi <aldo@corte.si>2015-08-01 11:38:33 +1200
commitc31b6c3c36f681d1dbc3ce11922741b7e1e41837 (patch)
treef63a0f56534d16437aaa5464cf585cac82f90985 /test/test_proxy.py
parentcdc84f52d213cb2b2b2a06a17378ebe757908865 (diff)
parent4f38c6b90e239d192863dee271e267b498c72206 (diff)
downloadmitmproxy-c31b6c3c36f681d1dbc3ce11922741b7e1e41837.tar.gz
mitmproxy-c31b6c3c36f681d1dbc3ce11922741b7e1e41837.tar.bz2
mitmproxy-c31b6c3c36f681d1dbc3ce11922741b7e1e41837.zip
Merge pull request #698 from Kriechi/http2-wip
[WIP] Protocol Refactoring for HTTP/2
Diffstat (limited to 'test/test_proxy.py')
-rw-r--r--test/test_proxy.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_proxy.py b/test/test_proxy.py
index 01fbe953..6ab19e02 100644
--- a/test/test_proxy.py
+++ b/test/test_proxy.py
@@ -30,7 +30,10 @@ class TestServerConnection:
f = tutils.tflow()
f.server_conn = sc
f.request.path = "/p/200:da"
- sc.send(f.request.assemble())
+
+ # use this protocol just to assemble - not for actual sending
+ protocol = http.http1.HTTP1Protocol(rfile=sc.rfile)
+ sc.send(protocol.assemble(f.request))
protocol = http.http1.HTTP1Protocol(rfile=sc.rfile)
assert protocol.read_response(f.request.method, 1000)