python: Fixed typo.
authorFredrik Tolf <fredrik@dolda2000.com>
Fri, 7 Feb 2014 02:55:50 +0000 (03:55 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Fri, 7 Feb 2014 02:55:50 +0000 (03:55 +0100)
python/scgi-wsgi

index 7b1e1f5..99e003c 100755 (executable)
@@ -121,9 +121,9 @@ class request(ashd.serve.wsgirequest):
     def flush(self):
         try:
             if not request.onjython():
-                ret = self.bsk.send(str(self.buffer), socket.MSG_DONTWAIT)
+                ret = self.bsk.send(self.buffer, socket.MSG_DONTWAIT)
             else:
-                ret = self.bsk.send(self.buffer)
+                ret = self.bsk.send(str(self.buffer))
             self.buffer[:ret] = ""
         except IOError:
             raise ashd.serve.closed()