diff options
author | Helmut Grohne <helmut@subdivi.de> | 2007-09-11 21:51:48 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2007-09-11 21:51:48 +0200 |
commit | 27f7fd0e8882e919cb6b2798eb6b8f1feb2d7829 (patch) | |
tree | 3990ec1f40d9f76e3b015bc861e7f62aa8a2761d /wsgitools/scgi | |
parent | 43cfa376163bdca06314f9b9501c4bbbacba87c9 (diff) | |
download | wsgitools-27f7fd0e8882e919cb6b2798eb6b8f1feb2d7829.tar.gz |
fix scgi.asynchronous to work with empty responses
Diffstat (limited to 'wsgitools/scgi')
-rw-r--r-- | wsgitools/scgi/asynchronous.py | 2 |
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 |