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.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/netlib/http/http1/read.py b/netlib/http/http1/read.py
index 4c898348..73c7deed 100644
--- a/netlib/http/http1/read.py
+++ b/netlib/http/http1/read.py
@@ -218,11 +218,6 @@ def _get_first_line(rfile):
raise HttpReadDisconnect("Remote disconnected")
if not line:
raise HttpReadDisconnect("Remote disconnected")
- line = line.strip()
- try:
- line.decode("ascii")
- except ValueError:
- raise HttpSyntaxException("Non-ascii characters in first line: {}".format(line))
return line.strip()