aboutsummaryrefslogtreecommitdiffstats
path: root/test/http2/test_http2_protocol.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-14 19:17:34 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-14 19:43:32 +0200
commit8d71a5b4aba8248b97918b11b12275bbf5197337 (patch)
tree80951c07e56dc07e2a840cd5dbe85ed6d83f21a1 /test/http2/test_http2_protocol.py
parent9c6d237d02290c2388f19ec8f215827d4f921e4b (diff)
downloadmitmproxy-8d71a5b4aba8248b97918b11b12275bbf5197337.tar.gz
mitmproxy-8d71a5b4aba8248b97918b11b12275bbf5197337.tar.bz2
mitmproxy-8d71a5b4aba8248b97918b11b12275bbf5197337.zip
http2: add authority header
Diffstat (limited to 'test/http2/test_http2_protocol.py')
-rw-r--r--test/http2/test_http2_protocol.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/http2/test_http2_protocol.py b/test/http2/test_http2_protocol.py
index ebd2c9a7..34c69fa9 100644
--- a/test/http2/test_http2_protocol.py
+++ b/test/http2/test_http2_protocol.py
@@ -222,14 +222,14 @@ class TestCreateRequest():
def test_create_request_simple(self):
bytes = http2.HTTP2Protocol(self.c).create_request('GET', '/')
assert len(bytes) == 1
- assert bytes[0] == '000003010500000001828487'.decode('hex')
+ assert bytes[0] == '00000c0105000000018284874187089d5c0b8170ff'.decode('hex')
def test_create_request_with_body(self):
bytes = http2.HTTP2Protocol(self.c).create_request(
'GET', '/', [(b'foo', b'bar')], 'foobar')
assert len(bytes) == 2
assert bytes[0] ==\
- '00000b010400000001828487408294e7838c767f'.decode('hex')
+ '0000140104000000018284874187089d5c0b8170ff408294e7838c767f'.decode('hex')
assert bytes[1] ==\
'000006000100000001666f6f626172'.decode('hex')