mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Fix bug when responses have no body.
Thanks to Chris Dent for noticing this.
This commit is contained in:
parent
fc3c53500e
commit
ff47d22488
1
THANKS
1
THANKS
@ -9,3 +9,4 @@ Eric Florenzano <floguy@gmail.com>
|
||||
Johan Bergström <bugs@bergstroem.nu>
|
||||
Xavier Grangier <grangier@gmail.com>
|
||||
Sergey Shepelev <temotor@gmail.com>
|
||||
Chris Dent <chris.dent@gmail.com>
|
||||
|
||||
@ -53,5 +53,7 @@ class Response(object):
|
||||
write(self.req.socket, arg, self.chunked)
|
||||
|
||||
def close(self):
|
||||
if not self.headers_sent:
|
||||
self.send_headers()
|
||||
if self.chunked:
|
||||
write_chunk(self.socket, "")
|
||||
Loading…
x
Reference in New Issue
Block a user