fix response

This commit is contained in:
benoitc 2010-03-23 21:09:15 +01:00
parent d192b1e653
commit c1aec22097
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@
from wsgiref.validate import validator
@validator
#@validator
def app(environ, start_response):
"""Simplest possible application object"""
data = 'Hello, World!\n'

View File

@ -27,8 +27,8 @@ class Response(object):
def default_headers(self):
return [
"HTTP/1.1 %s\r\n" % self.status,
"Server: %s\r\n" % self.SERVER_VERSION,
"Date: %s\r\n" % util.http_date(),
"Server: %s\r\n" % self.version,
"Date: %s\r\n" % http_date(),
"Connection: close\r\n"
]