diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-09-26 17:40:22 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-26 17:40:22 +0200 |
commit | fa722e02901c11f0d52176177d1032e9ab0cae1f (patch) | |
tree | b1620f744a0947ed9bd735563fc59a8a7b17161f /test/test_pathoc.py | |
parent | a163dba582e6aac103262bac50fcd390ebce0c72 (diff) | |
download | mitmproxy-fa722e02901c11f0d52176177d1032e9ab0cae1f.tar.gz mitmproxy-fa722e02901c11f0d52176177d1032e9ab0cae1f.tar.bz2 mitmproxy-fa722e02901c11f0d52176177d1032e9ab0cae1f.zip |
adjust to netlib changes
Diffstat (limited to 'test/test_pathoc.py')
-rw-r--r-- | test/test_pathoc.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_pathoc.py b/test/test_pathoc.py index 72af8b13..eb5d368d 100644 --- a/test/test_pathoc.py +++ b/test/test_pathoc.py @@ -47,7 +47,7 @@ class _TestDaemon: ) c.connect() resp = c.request("get:/api/info") - assert tuple(json.loads(resp.body)["version"]) == version.IVERSION + assert tuple(json.loads(resp.content)["version"]) == version.IVERSION def tval( self, @@ -94,7 +94,7 @@ class TestDaemonSSL(_TestDaemon): ssloptions = pathod.SSLOptions( request_client_cert=True, sans=["test1.com", "test2.com"], - alpn_select=http.ALPN_PROTO_H2, + alpn_select=b'h2', ) def test_sni(self): @@ -107,7 +107,7 @@ class TestDaemonSSL(_TestDaemon): c.connect() c.request("get:/p/200") r = c.request("get:/api/log") - d = json.loads(r.body) + d = json.loads(r.content) assert d["log"][0]["request"]["sni"] == "foobar.com" def test_showssl(self): @@ -123,7 +123,7 @@ class TestDaemonSSL(_TestDaemon): c.connect() c.request("get:/p/200") r = c.request("get:/api/log") - d = json.loads(r.body) + d = json.loads(r.content) assert d["log"][0]["request"]["clientcert"]["keyinfo"] def test_http2_without_ssl(self): |