From 770e92e7523787fc1dcc671ed70b8a478fda783d Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Fri, 7 Feb 2014 03:54:38 +0100 Subject: [PATCH] python: Ensure request bytearray is explicitly converted to str on Jython. --- python/scgi-wsgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/scgi-wsgi b/python/scgi-wsgi index 6e04f20..7b1e1f5 100755 --- a/python/scgi-wsgi +++ b/python/scgi-wsgi @@ -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] = "" -- 2.11.0