summaryrefslogtreecommitdiff
path: root/wsgitools
diff options
context:
space:
mode:
Diffstat (limited to 'wsgitools')
-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 51c1d55..80b5803 100644
--- a/wsgitools/scgi/asynchronous.py
+++ b/wsgitools/scgi/asynchronous.py
@@ -58,7 +58,7 @@ class SCGIConnection(asyncore.dispatcher):
def _wsgi_write(self, data):
assert self.state >= SCGIConnection.RESP
assert self.state < SCGIConnection.TRANS
- assert isinstance(data, str)
+ assert isinstance(data, bytes)
if data:
self._try_send_headers()
self.outbuff += data