diff options
Diffstat (limited to 'netlib/http')
| -rw-r--r-- | netlib/http/http1/assemble.py | 2 | ||||
| -rw-r--r-- | netlib/http/http1/read.py | 2 | ||||
| -rw-r--r-- | netlib/http/http2/framereader.py | 4 | 
3 files changed, 4 insertions, 4 deletions
diff --git a/netlib/http/http1/assemble.py b/netlib/http/http1/assemble.py index 3d65da34..e0a91ad8 100644 --- a/netlib/http/http1/assemble.py +++ b/netlib/http/http1/assemble.py @@ -1,5 +1,5 @@  import netlib.http.url -from netlib import exceptions +from mitmproxy import exceptions  def assemble_request(request): diff --git a/netlib/http/http1/read.py b/netlib/http/http1/read.py index 89b73c5a..e6b22863 100644 --- a/netlib/http/http1/read.py +++ b/netlib/http/http1/read.py @@ -7,7 +7,7 @@ from netlib.http import response  from netlib.http import headers  from netlib.http import url  from netlib import check -from netlib import exceptions +from mitmproxy import exceptions  def get_header_tokens(headers, key): diff --git a/netlib/http/http2/framereader.py b/netlib/http/http2/framereader.py index 8b7cfffb..6a164919 100644 --- a/netlib/http/http2/framereader.py +++ b/netlib/http/http2/framereader.py @@ -1,7 +1,7 @@  import codecs  import hyperframe -from ...exceptions import HttpException +from mitmproxy import exceptions  def read_raw_frame(rfile): @@ -9,7 +9,7 @@ def read_raw_frame(rfile):      length = int(codecs.encode(header[:3], 'hex_codec'), 16)      if length == 4740180: -        raise HttpException("Length field looks more like HTTP/1.1:\n{}".format(rfile.read(-1))) +        raise exceptions.HttpException("Length field looks more like HTTP/1.1:\n{}".format(rfile.read(-1)))      body = rfile.safe_read(length)      return [header, body]  | 
