diff options
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 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 |