diff options
author | Aldo Cortesi <aldo@corte.si> | 2016-05-31 16:34:28 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@corte.si> | 2016-05-31 16:34:28 +1200 |
commit | 2f526393d29b6a03e43d1f6240175b4dfb13dc7d (patch) | |
tree | 5139eb975211295b65da9cc9736d92cd1ac0f756 /test | |
parent | d98582664d8f234fe6a2c805f02d47686243379f (diff) | |
parent | 4de4223b2ddb4417be0d6a2fa0556d531a494091 (diff) | |
download | mitmproxy-2f526393d29b6a03e43d1f6240175b4dfb13dc7d.tar.gz mitmproxy-2f526393d29b6a03e43d1f6240175b4dfb13dc7d.tar.bz2 mitmproxy-2f526393d29b6a03e43d1f6240175b4dfb13dc7d.zip |
Merge pull request #1178 from cortesi/pseudohdrs
Improve handling of HTTP2 pseudo-headers
Diffstat (limited to 'test')
-rw-r--r-- | test/netlib/http/http2/test_connections.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/netlib/http/http2/test_connections.py b/test/netlib/http/http2/test_connections.py index ff462ba6..69667d1c 100644 --- a/test/netlib/http/http2/test_connections.py +++ b/test/netlib/http/http2/test_connections.py @@ -312,7 +312,10 @@ class TestReadRequest(tservers.ServerTestBase): req = protocol.read_request(NotImplemented) assert req.stream_id - assert req.headers.fields == ((b':method', b'GET'), (b':path', b'/'), (b':scheme', b'https')) + assert req.headers.fields == () + assert req.method == "GET" + assert req.path == "/" + assert req.scheme == "https" assert req.content == b'foobar' |