git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05c6de8
)
wsgi expects a bytes object, not a str anymore
author
parmentelat
<thierry.parmentelat@inria.fr>
Thu, 13 Dec 2018 20:00:39 +0000
(21:00 +0100)
committer
parmentelat
<thierry.parmentelat@inria.fr>
Thu, 13 Dec 2018 20:00:39 +0000
(21:00 +0100)
apache/plc.wsgi
patch
|
blob
|
history
diff --git
a/apache/plc.wsgi
b/apache/plc.wsgi
index
3e0d51c
..
9482918
100644
(file)
--- 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]