]> www.dolda2000.com Git - ashd.git/commitdiff
python: Ensure request bytearray is explicitly converted to str on Jython.
authorFredrik Tolf <fredrik@dolda2000.com>
Fri, 7 Feb 2014 02:54:38 +0000 (03:54 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Fri, 7 Feb 2014 02:54:38 +0000 (03:54 +0100)
python/scgi-wsgi

index 6e04f20373a1871b7848860496e7b325a5cd6b90..7b1e1f5ee07dacc275ccbd2483f8bee8f824ea33 100755 (executable)
@@ -121,7 +121,7 @@ class request(ashd.serve.wsgirequest):
     def flush(self):
         try:
             if not request.onjython():
-                ret = self.bsk.send(self.buffer, socket.MSG_DONTWAIT)
+                ret = self.bsk.send(str(self.buffer), socket.MSG_DONTWAIT)
             else:
                 ret = self.bsk.send(self.buffer)
             self.buffer[:ret] = ""