Explicitly set charset to UTF-8 in rest_utils for webob.Response

Change-Id: I53c390e287b47923bcf97bce2127f75764b615b1
This commit is contained in:
Renat Akhmerov 2017-04-03 14:39:01 +07:00
parent 78118a271c
commit 8eb71e9582

View File

@ -67,7 +67,8 @@ def wrap_pecan_controller_exception(func):
return webob.Response(
status=e.http_code,
content_type='application/json',
body=json.dumps(dict(faultstring=six.text_type(e)))
body=json.dumps(dict(faultstring=six.text_type(e))),
charset='UTF-8'
)
return wrapped