diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-15 23:36:14 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-16 15:00:29 +0200 |
commit | eb823a04a19de7fd9e15d225064ae4581f0b85bf (patch) | |
tree | 8d0d7b909a5432fcb7317c95fc70aec1927d67b2 /test/http2/test_http2_protocol.py | |
parent | abb37a3ef52ab9a0f68dc46e4a8ca165e365139b (diff) | |
download | mitmproxy-eb823a04a19de7fd9e15d225064ae4581f0b85bf.tar.gz mitmproxy-eb823a04a19de7fd9e15d225064ae4581f0b85bf.tar.bz2 mitmproxy-eb823a04a19de7fd9e15d225064ae4581f0b85bf.zip |
http2: improve :authority header
Diffstat (limited to 'test/http2/test_http2_protocol.py')
-rw-r--r-- | test/http2/test_http2_protocol.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/http2/test_http2_protocol.py b/test/http2/test_http2_protocol.py index 231b35e0..9b49acd3 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] == '00000c0105000000018284874187089d5c0b8170ff'.decode('hex') + assert bytes[0] == '00000d0105000000018284874188089d5c0b8170dc07'.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] ==\ - '0000140104000000018284874187089d5c0b8170ff408294e7838c767f'.decode('hex') + '0000150104000000018284874188089d5c0b8170dc07408294e7838c767f'.decode('hex') assert bytes[1] ==\ '000006000100000001666f6f626172'.decode('hex') |