mirror of
https://github.com/python/cpython.git
synced 2025-07-22 18:55:22 +00:00
Treat HTTP status line as ISO-8859-1 as in httplib module.
This commit is contained in:
parent
cf2f41919c
commit
d2ef864f81
1 changed files with 1 additions and 1 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue