diff options
| author | Thomas Kriechbaumer <Kriechi@users.noreply.github.com> | 2016-06-17 15:21:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-17 15:21:57 +0200 |
| commit | 9c6199db9be34fad18eaedb86463333671ae190a (patch) | |
| tree | 7a4b871c24193d31f8dc23794b0a37f58c111c92 /test/pathod/test_language_http2.py | |
| parent | fcf5dc8728816bae73a175ee021f8a11a1591567 (diff) | |
| parent | eb3ed87100ff7c32e5bf040db7eb6ea3d0c06e12 (diff) | |
| download | mitmproxy-9c6199db9be34fad18eaedb86463333671ae190a.tar.gz mitmproxy-9c6199db9be34fad18eaedb86463333671ae190a.tar.bz2 mitmproxy-9c6199db9be34fad18eaedb86463333671ae190a.zip | |
Merge pull request #1269 from Kriechi/pathod-netlib-http2
move custom HTTP/2 stack from netlib to pathod
Diffstat (limited to 'test/pathod/test_language_http2.py')
| -rw-r--r-- | test/pathod/test_language_http2.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/pathod/test_language_http2.py b/test/pathod/test_language_http2.py index a2bffe63..f4b34047 100644 --- a/test/pathod/test_language_http2.py +++ b/test/pathod/test_language_http2.py @@ -1,12 +1,13 @@ from six import BytesIO -import netlib from netlib import tcp from netlib.http import user_agents from pathod import language from pathod.language import http2 -import tutils +from pathod.protocols.http2 import HTTP2StateProtocol + +from . import tutils def parse_request(s): @@ -20,7 +21,7 @@ def parse_response(s): def default_settings(): return language.Settings( request_host="foo.com", - protocol=netlib.http.http2.HTTP2Protocol(tcp.TCPClient(('localhost', 1234))) + protocol=HTTP2StateProtocol(tcp.TCPClient(('localhost', 1234))) ) |
