mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix response
This commit is contained in:
parent
d192b1e653
commit
c1aec22097
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
from wsgiref.validate import validator
|
from wsgiref.validate import validator
|
||||||
|
|
||||||
@validator
|
#@validator
|
||||||
def app(environ, start_response):
|
def app(environ, start_response):
|
||||||
"""Simplest possible application object"""
|
"""Simplest possible application object"""
|
||||||
data = 'Hello, World!\n'
|
data = 'Hello, World!\n'
|
||||||
|
|||||||
@ -27,8 +27,8 @@ class Response(object):
|
|||||||
def default_headers(self):
|
def default_headers(self):
|
||||||
return [
|
return [
|
||||||
"HTTP/1.1 %s\r\n" % self.status,
|
"HTTP/1.1 %s\r\n" % self.status,
|
||||||
"Server: %s\r\n" % self.SERVER_VERSION,
|
"Server: %s\r\n" % self.version,
|
||||||
"Date: %s\r\n" % util.http_date(),
|
"Date: %s\r\n" % http_date(),
|
||||||
"Connection: close\r\n"
|
"Connection: close\r\n"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user