wsgi expects a bytes object, not a str anymore
authorparmentelat <thierry.parmentelat@inria.fr>
Thu, 13 Dec 2018 20:00:39 +0000 (21:00 +0100)
committerparmentelat <thierry.parmentelat@inria.fr>
Thu, 13 Dec 2018 20:00:39 +0000 (21:00 +0100)
apache/plc.wsgi

index 3e0d51c..9482918 100644 (file)
@@ -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]