Commit 967ba501 authored by Denis Bilenko's avatar Denis Bilenko

pywsgi: fix the HTTP version in the reply. Patch by Ralf Schmitt.

parent 24ace279
......@@ -181,7 +181,7 @@ class HttpProtocol(BaseHTTPServer.BaseHTTPRequestHandler):
raise AssertionError("write() before start_response()")
elif not self.headers_sent:
self.headers_sent = True
towrite.append('%s %s\r\n' % (self.protocol_version, self.status))
towrite.append('%s %s\r\n' % (self.request_version, self.status))
for header in self.response_headers:
towrite.append('%s: %s\r\n' % header)
......
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