From 003c09ce1fbcd4963cefb122625909f5a419a70e Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Thu, 17 Dec 2009 22:33:14 +0100 Subject: [PATCH] add missing element --- gunicorn/http/request.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gunicorn/http/request.py b/gunicorn/http/request.py index 83a1646f..b62b2d0e 100644 --- a/gunicorn/http/request.py +++ b/gunicorn/http/request.py @@ -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)