aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http/http1/read.py
diff options
context:
space:
mode:
Diffstat (limited to 'netlib/http/http1/read.py')
-rw-r--r--netlib/http/http1/read.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/netlib/http/http1/read.py b/netlib/http/http1/read.py
index 4c00a96a..89b73c5a 100644
--- a/netlib/http/http1/read.py
+++ b/netlib/http/http1/read.py
@@ -6,7 +6,7 @@ from netlib.http import request
from netlib.http import response
from netlib.http import headers
from netlib.http import url
-from netlib import utils
+from netlib import check
from netlib import exceptions
@@ -274,7 +274,7 @@ def _parse_authority_form(hostport):
try:
host, port = hostport.split(b":")
port = int(port)
- if not utils.is_valid_host(host) or not utils.is_valid_port(port):
+ if not check.is_valid_host(host) or not check.is_valid_port(port):
raise ValueError()
except ValueError:
raise exceptions.HttpSyntaxException("Invalid host specification: {}".format(hostport))