diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-09-16 18:44:34 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-16 18:44:34 +0200 |
commit | 9f26d68f47bc7729b0727ed67253503e047ea0f9 (patch) | |
tree | 50178b4346384ec12e2ae3fd41b508a06d68f1c8 /libpathod/language/http2.py | |
parent | b889e9e1a2576b0f0aadb4180dd6f4c75db204d6 (diff) | |
download | mitmproxy-9f26d68f47bc7729b0727ed67253503e047ea0f9.tar.gz mitmproxy-9f26d68f47bc7729b0727ed67253503e047ea0f9.tar.bz2 mitmproxy-9f26d68f47bc7729b0727ed67253503e047ea0f9.zip |
adjust to netlib changes
Diffstat (limited to 'libpathod/language/http2.py')
-rw-r--r-- | libpathod/language/http2.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libpathod/language/http2.py b/libpathod/language/http2.py index 2c3f1786..829a05db 100644 --- a/libpathod/language/http2.py +++ b/libpathod/language/http2.py @@ -1,6 +1,7 @@ import pyparsing as pp -from netlib.http import user_agents, semantics, Headers +from netlib import http +from netlib.http import user_agents, Headers from . import base, message """ @@ -184,7 +185,7 @@ class Response(_HTTP2Message): if body: body = body.string() - resp = semantics.Response( + resp = http.Response( (2, 0), self.code.string(), '', @@ -267,7 +268,7 @@ class Request(_HTTP2Message): if body: body = body.string() - req = semantics.Request( + req = http.Request( '', self.method.string(), '', |