Commit 518f67a9 authored by Denis Laxalde's avatar Denis Laxalde
Browse files

[py3] Let RqlIOController.publish() return bytes

This is expected by CubicWebPublisher.
We use request's encoding to encode the JSON value.
parent 59eab509372e
......@@ -134,8 +134,8 @@ class RqlIOController(Controller):
except Exception as exc:
raise RemoteCallFailed(exc_message(exc, self._cw.encoding))
if result is None:
return ''
return json_dumps(result)
return b''
return json_dumps(result).encode(self._cw.encoding)
def rqlio(self, *rql_args):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment