summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2007-09-11 21:51:48 +0200
committerHelmut Grohne <helmut@subdivi.de>2007-09-11 21:51:48 +0200
commit27f7fd0e8882e919cb6b2798eb6b8f1feb2d7829 (patch)
tree3990ec1f40d9f76e3b015bc861e7f62aa8a2761d
parent43cfa376163bdca06314f9b9501c4bbbacba87c9 (diff)
downloadwsgitools-27f7fd0e8882e919cb6b2798eb6b8f1feb2d7829.tar.gz
fix scgi.asynchronous to work with empty responses
-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