X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=apache%2Fplc.wsgi;h=94829183de832dff805425b95e4700753698f8a8;hb=refs%2Fheads%2Fpython3;hp=3e0d51c6e7be5fa14b93a51470a10b4946642651;hpb=fdc1bf78189188df147a882721805e7ed5654459;p=plcapi.git 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]