summaryrefslogtreecommitdiff
path: root/wsgitools/scgi/asynchronous.py
diff options
context:
space:
mode:
Diffstat (limited to 'wsgitools/scgi/asynchronous.py')
-rw-r--r--wsgitools/scgi/asynchronous.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wsgitools/scgi/asynchronous.py b/wsgitools/scgi/asynchronous.py
index f5a6a43..bdb2a20 100644
--- a/wsgitools/scgi/asynchronous.py
+++ b/wsgitools/scgi/asynchronous.py
@@ -148,9 +148,9 @@ class SCGIConnection(asyncore.dispatcher):
"""asyncore interface"""
assert self.state >= SCGIConnection.REQ
if len(self.outbuff) < self.BLOCK_SIZE:
+ self._try_send_headers()
for data in self.wsgihandler:
if data:
- self._try_send_headers()
self.outbuff += data
if len(self.outbuff) >= self.BLOCK_SIZE:
break