diff --git a/gunicorn/http/response.py b/gunicorn/http/response.py index 3de05fe3..a4fda046 100644 --- a/gunicorn/http/response.py +++ b/gunicorn/http/response.py @@ -56,7 +56,7 @@ class Response(object): if not self.headers_sent: self.send_headers() if self.chunked: - write_chunk(self.socket, "") + write_chunk(self.req.socket, "") class KeepAliveResponse(Response):