From 0774607fabf3e233d2a039bd69bdc22c53ac9963 Mon Sep 17 00:00:00 2001 From: benoitc Date: Tue, 2 Mar 2010 23:49:41 +0100 Subject: [PATCH] flush on first write --- gunicorn/http/tee.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gunicorn/http/tee.py b/gunicorn/http/tee.py index 82e5c449..57291775 100644 --- a/gunicorn/http/tee.py +++ b/gunicorn/http/tee.py @@ -36,6 +36,7 @@ class TeeInput(object): chunk, self.buf = parser.filter_body(buf) if chunk: self.tmp.write(chunk) + self.tmp.flush() self._finalize() self.tmp.seek(0)