From d2ef864f819ba9b3ef834e190491829bbb00b554 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Fri, 3 Aug 2007 20:32:27 +0000 Subject: Treat HTTP status line as ISO-8859-1 as in httplib module. --- Lib/BaseHTTPServer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/BaseHTTPServer.py b/Lib/BaseHTTPServer.py index 982c9d2..699b359 100644 --- a/Lib/BaseHTTPServer.py +++ b/Lib/BaseHTTPServer.py @@ -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': -- cgit v0.12