diff --git a/examples/test.py b/examples/test.py index f824b740..f972a635 100644 --- a/examples/test.py +++ b/examples/test.py @@ -7,7 +7,7 @@ from wsgiref.validate import validator -@validator +#@validator def app(environ, start_response): """Simplest possible application object""" data = 'Hello, World!\n' diff --git a/gunicorn/http/response.py b/gunicorn/http/response.py index bb92e4f7..33f69685 100644 --- a/gunicorn/http/response.py +++ b/gunicorn/http/response.py @@ -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" ]