Explicitly set charset to UTF-8 in rest_utils for webob.Response
Change-Id: I53c390e287b47923bcf97bce2127f75764b615b1
This commit is contained in:
parent
78118a271c
commit
8eb71e9582
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user