diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2007-08-03 20:32:27 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2007-08-03 20:32:27 (GMT) |
commit | d2ef864f819ba9b3ef834e190491829bbb00b554 (patch) | |
tree | 976a6500fd1d6eb639fa138afe878690c6fb5661 /Lib | |
parent | cf2f41919c226d1ac04ea74a0138eae3af030554 (diff) | |
download | cpython-d2ef864f819ba9b3ef834e190491829bbb00b554.zip cpython-d2ef864f819ba9b3ef834e190491829bbb00b554.tar.gz cpython-d2ef864f819ba9b3ef834e190491829bbb00b554.tar.bz2 |
Treat HTTP status line as ISO-8859-1 as in httplib module.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/BaseHTTPServer.py | 2 |
1 files changed, 1 insertions, 1 deletions
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': |