[Zope-Checkins] CVS: Zope/ZServer/medusa - http_server.py:1.29
Andreas Jung
andreas@zope.com
Fri, 17 Aug 2001 09:00:07 -0400
Update of /cvs-repository/Zope/ZServer/medusa
In directory cvs.zope.org:/tmp/cvs-serv5254
Modified Files:
http_server.py
Log Message:
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..."
=== Zope/ZServer/medusa/http_server.py 1.28 => 1.29 ===
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