mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
use same close func in async
This commit is contained in:
parent
ff47d22488
commit
891d751af2
@ -31,10 +31,6 @@ class KeepaliveResponse(http.Response):
|
|||||||
"Connection: %s\r\n" % connection_hdr
|
"Connection: %s\r\n" % connection_hdr
|
||||||
]
|
]
|
||||||
|
|
||||||
def close(self):
|
|
||||||
if self.chunked:
|
|
||||||
write_chunk(self.socket, "")
|
|
||||||
|
|
||||||
class KeepaliveRequest(http.Request):
|
class KeepaliveRequest(http.Request):
|
||||||
|
|
||||||
RESPONSE_CLASS = KeepaliveResponse
|
RESPONSE_CLASS = KeepaliveResponse
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user