aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2016-10-27 12:22:09 -0700
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-10-27 15:10:53 -0700
commit44ac370f08b2d95a12fcf030ca1bb53846e791fa (patch)
tree6968050bb14c622eff2ddc95bfc0a8cc5eae1b6c /test
parent33bc526b701ed586bc0277cc6617498c4f60a52f (diff)
downloadmitmproxy-44ac370f08b2d95a12fcf030ca1bb53846e791fa.tar.gz
mitmproxy-44ac370f08b2d95a12fcf030ca1bb53846e791fa.tar.bz2
mitmproxy-44ac370f08b2d95a12fcf030ca1bb53846e791fa.zip
upgrade h2 to >=2.5.0
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/protocol/test_http2.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/mitmproxy/protocol/test_http2.py b/test/mitmproxy/protocol/test_http2.py
index 4629d109..a2eeea52 100644
--- a/test/mitmproxy/protocol/test_http2.py
+++ b/test/mitmproxy/protocol/test_http2.py
@@ -298,9 +298,9 @@ class TestRequestWithPriority(_Http2Test):
headers = [(':status', '200')]
if event.priority_updated:
- headers.append(('priority_exclusive', event.priority_updated.exclusive))
- headers.append(('priority_depends_on', event.priority_updated.depends_on))
- headers.append(('priority_weight', event.priority_updated.weight))
+ headers.append(('priority_exclusive', str(event.priority_updated.exclusive).encode()))
+ headers.append(('priority_depends_on', str(event.priority_updated.depends_on).encode()))
+ headers.append(('priority_weight', str(event.priority_updated.weight).encode()))
h2_conn.send_headers(event.stream_id, headers)
h2_conn.end_stream(event.stream_id)
wfile.write(h2_conn.data_to_send())