Skip to content

Commit

Permalink
server top_line is ascii
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Feb 29, 2016
1 parent 24fc2f9 commit 360c74b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thor/http/server.py
Expand Up @@ -100,7 +100,7 @@ def input_start(self, top_line, hdr_tuples, conn_tokens,
and queue the request to be processed by the application.
"""
try:
method, _req_line = top_line.decode('utf-8').split(None, 1) ## TODO: encoding
method, _req_line = top_line.decode('ascii').split(None, 1) ## TODO: encoding errors
uri, req_version = _req_line.rsplit(None, 1)
req_version = req_version.rsplit('/', 1)[1]
except (ValueError, IndexError):
Expand Down

0 comments on commit 360c74b

Please sign in to comment.