aboutsummaryrefslogtreecommitdiffstats
path: root/test/pathod/protocols/test_http2.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2017-05-24 14:09:41 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2017-05-24 14:09:41 +0200
commitae7e9efb5ca014291e879694414bbffc982f2a0d (patch)
tree6ada273eb6d6f0cc9cf04a9d002ee8481d9cce41 /test/pathod/protocols/test_http2.py
parent2faaa0b2a23089b9ffccf2d46dc42328edb76ddd (diff)
downloadmitmproxy-ae7e9efb5ca014291e879694414bbffc982f2a0d.tar.gz
mitmproxy-ae7e9efb5ca014291e879694414bbffc982f2a0d.tar.bz2
mitmproxy-ae7e9efb5ca014291e879694414bbffc982f2a0d.zip
fix various fd/socket leaks
Diffstat (limited to 'test/pathod/protocols/test_http2.py')
-rw-r--r--test/pathod/protocols/test_http2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pathod/protocols/test_http2.py b/test/pathod/protocols/test_http2.py
index 1c074197..c16a6d40 100644
--- a/test/pathod/protocols/test_http2.py
+++ b/test/pathod/protocols/test_http2.py
@@ -202,7 +202,7 @@ class TestApplySettings(net_tservers.ServerTestBase):
def handle(self):
# check settings acknowledgement
assert self.rfile.read(9) == codecs.decode('000000040100000000', 'hex_codec')
- self.wfile.write("OK")
+ self.wfile.write(b"OK")
self.wfile.flush()
self.rfile.safe_read(9) # just to keep the connection alive a bit longer