morss: make cgi_encore more robust
parent
d90756b337
commit
3617f86e9d
|
@ -720,7 +720,7 @@ def cgi_error_handler(environ, start_response, app):
|
||||||
@middleware
|
@middleware
|
||||||
def cgi_encode(environ, start_response, app):
|
def cgi_encode(environ, start_response, app):
|
||||||
out = app(environ, start_response)
|
out = app(environ, start_response)
|
||||||
return [x if isinstance(x, bytes) else x.encode('utf-8') for x in out]
|
return [x if isinstance(x, bytes) else str(x).encode('utf-8') for x in out]
|
||||||
|
|
||||||
|
|
||||||
def cli_app():
|
def cli_app():
|
||||||
|
|
Loading…
Reference in New Issue