Commit d2ef864f authored by Jeremy Hylton's avatar Jeremy Hylton

Treat HTTP status line as ISO-8859-1 as in httplib module.

parent cf2f4191
......@@ -230,7 +230,7 @@ class BaseHTTPRequestHandler(SocketServer.StreamRequestHandler):
self.command = None # set in case of error on the first line
self.request_version = version = "HTTP/0.9" # Default
self.close_connection = 1
requestline = self.raw_requestline
requestline = str(self.raw_requestline, 'iso-8859-1')
if requestline[-2:] == '\r\n':
requestline = requestline[:-2]
elif requestline[-1:] == '\n':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment