From: parmentelat Date: Thu, 13 Dec 2018 20:00:39 +0000 (+0100) Subject: wsgi expects a bytes object, not a str anymore X-Git-Tag: plcapi-7.0-0~16 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=0be003a92b3de227a04614f11d77005fe87db686 wsgi expects a bytes object, not a str anymore --- diff --git a/apache/plc.wsgi b/apache/plc.wsgi index 3e0d51c..9482918 100644 --- a/apache/plc.wsgi +++ b/apache/plc.wsgi @@ -50,5 +50,6 @@ def application(environ, start_response): response_headers = [('Content-type', '%s' % content_type), ('Content-Length', str(len(output)))] start_response(status, response_headers) - return [output] - + # with python3 wsgi expects a bytes object here + output = output.encode() + return [output]