aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-10-27 16:13:30 -0700
committerGitHub <noreply@github.com>2016-10-27 16:13:30 -0700
commit4ac4fe284908ac1aab0c973d180ca7274e8ddd06 (patch)
tree738b55f2f8b2aa5d65171d8fa05b5a55ba571d75 /test
parent2a901b90c5d97d63b24ba4e56e3decac27b1e1c3 (diff)
parent44ac370f08b2d95a12fcf030ca1bb53846e791fa (diff)
downloadmitmproxy-4ac4fe284908ac1aab0c973d180ca7274e8ddd06.tar.gz
mitmproxy-4ac4fe284908ac1aab0c973d180ca7274e8ddd06.tar.bz2
mitmproxy-4ac4fe284908ac1aab0c973d180ca7274e8ddd06.zip
Merge pull request #1671 from mitmproxy/bump-h2
Bump h2 version
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())