It appears that, at least with Python 3, only the output needs to be a byte type and the headers should be plain text. See my experiments with a simple mod_wsgi app below:
https://paste.ubuntu.com/p/9nNZqQGtv9/
It appears that, at least with Python 3, only the output needs to be a byte type and the headers should be plain text. See my experiments with a simple mod_wsgi app below:
https:/ /paste. ubuntu. com/p/9nNZqQGtv 9/