Commit af6351c5 authored by Andreas Jung's avatar Andreas Jung

Collector #2524: Medusa sent "HTTP/None..." as response header when

then HTTP version could not be determined from the HTTP request.
Now sending "HTTP/1.0..."
parent fbb61c20
......@@ -6,7 +6,7 @@
# All Rights Reserved.
#
RCS_ID = '$Id: http_server.py,v 1.28 2001/07/02 19:44:26 shane Exp $'
RCS_ID = '$Id: http_server.py,v 1.29 2001/08/17 13:00:06 andreasjung Exp $'
# python modules
import os
......@@ -165,7 +165,7 @@ class http_request:
def response (self, code=200):
message = self.responses[code]
self.reply_code = code
return 'HTTP/%s %d %s' % (self.version, code, message)
return 'HTTP/%s %d %s' % (self.version or '1.0', code, message)
def error (self, code):
self.reply_code = code
......
......@@ -6,7 +6,7 @@
# All Rights Reserved.
#
RCS_ID = '$Id: http_server.py,v 1.28 2001/07/02 19:44:26 shane Exp $'
RCS_ID = '$Id: http_server.py,v 1.29 2001/08/17 13:00:06 andreasjung Exp $'
# python modules
import os
......@@ -165,7 +165,7 @@ class http_request:
def response (self, code=200):
message = self.responses[code]
self.reply_code = code
return 'HTTP/%s %d %s' % (self.version, code, message)
return 'HTTP/%s %d %s' % (self.version or '1.0', code, message)
def error (self, code):
self.reply_code = code
......
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