diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-05-31 18:42:56 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-05-31 18:42:56 +1200 |
commit | 4e6c9c4e935458d23add259dc63c5e0a85fba9c8 (patch) | |
tree | 54421713fc65e0e8e8af3f6428b56d6ef096ff40 /netlib/http/http1 | |
parent | 08fbe6f1118455bc44d05db30b83bdf81feda2a0 (diff) | |
download | mitmproxy-4e6c9c4e935458d23add259dc63c5e0a85fba9c8.tar.gz mitmproxy-4e6c9c4e935458d23add259dc63c5e0a85fba9c8.tar.bz2 mitmproxy-4e6c9c4e935458d23add259dc63c5e0a85fba9c8.zip |
Extract url functions from netlib.utils and move to netlib.http.url
Diffstat (limited to 'netlib/http/http1')
-rw-r--r-- | netlib/http/http1/read.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/netlib/http/http1/read.py b/netlib/http/http1/read.py index d30976bd..f776d0b5 100644 --- a/netlib/http/http1/read.py +++ b/netlib/http/http1/read.py @@ -6,6 +6,7 @@ import re from ... import utils from ...exceptions import HttpReadDisconnect, HttpSyntaxException, HttpException, TcpDisconnect from .. import Request, Response, Headers +from .. import url def read_request(rfile, body_size_limit=None): @@ -240,7 +241,7 @@ def _read_request_line(rfile): scheme, path = None, None else: form = "absolute" - scheme, host, port, path = utils.parse_url(path) + scheme, host, port, path = url.parse_url(path) _check_http_version(http_version) except ValueError: |