aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http/http1/read.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-05-31 18:42:56 +1200
committerAldo Cortesi <aldo@nullcube.com>2016-05-31 18:42:56 +1200
commit4e6c9c4e935458d23add259dc63c5e0a85fba9c8 (patch)
tree54421713fc65e0e8e8af3f6428b56d6ef096ff40 /netlib/http/http1/read.py
parent08fbe6f1118455bc44d05db30b83bdf81feda2a0 (diff)
downloadmitmproxy-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/read.py')
-rw-r--r--netlib/http/http1/read.py3
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: