mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
add missing element
This commit is contained in:
parent
8d53f458db
commit
003c09ce1f
@ -51,6 +51,7 @@ class HTTPRequest(object):
|
||||
self.response_headers = {}
|
||||
self._version = 11
|
||||
self.io = IOStream(socket)
|
||||
self.start_response_called = False
|
||||
|
||||
|
||||
def read(self):
|
||||
@ -169,6 +170,7 @@ class HTTPRequest(object):
|
||||
resp_head.append("%s: %s" % (name, value))
|
||||
self.response_headers[name.lower()] = value
|
||||
self.io.send("%s\r\n\r\n" % "\r\n".join(resp_head))
|
||||
self.start_response_called = True
|
||||
|
||||
def write(self, data):
|
||||
self.io.write(send)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user