From 44ac370f08b2d95a12fcf030ca1bb53846e791fa Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Thu, 27 Oct 2016 12:22:09 -0700 Subject: upgrade h2 to >=2.5.0 --- test/mitmproxy/protocol/test_http2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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()) -- cgit v1.2.3