author | Julien Cristau <julien.cristau@logilab.fr> |
Tue, 06 Oct 2015 11:07:22 +0200 | |
changeset 10777 | eabacd3c6f16 |
parent 10776 | b1834143fec8 |
child 10778 | 04d248305810 |
--- a/web/application.py Mon Oct 05 17:57:03 2015 +0200 +++ b/web/application.py Tue Oct 06 11:07:22 2015 +0200 @@ -500,7 +500,7 @@ # don't overwrite it if it's already set req.status_out = status json_dumper = getattr(ex, 'dumps', lambda : json.dumps({'reason': text_type(ex)})) - return json_dumper() + return json_dumper().encode('utf-8') # special case handling