diff options
Diffstat (limited to 'Lib/dos-8x3/basehttp.py')
-rwxr-xr-x | Lib/dos-8x3/basehttp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/dos-8x3/basehttp.py b/Lib/dos-8x3/basehttp.py index 281ddf6..7dadd71 100755 --- a/Lib/dos-8x3/basehttp.py +++ b/Lib/dos-8x3/basehttp.py @@ -236,7 +236,7 @@ class BaseHTTPRequestHandler(SocketServer.StreamRequestHandler): words = string.split(requestline) if len(words) == 3: [command, path, version] = words - if version != self.protocol_version: + if version[:5] != 'HTTP/': self.send_error(400, "Bad request version (%s)" % `version`) return elif len(words) == 2: @@ -297,7 +297,7 @@ class BaseHTTPRequestHandler(SocketServer.StreamRequestHandler): self.log_request(code) if message is None: if self.responses.has_key(code): - message = self.responses[code][1] + message = self.responses[code][0] else: message = '' if self.request_version != 'HTTP/0.9': |