diff options
| author | Rohan Rhishikesh Kanade <rohan.kanade@nttdata.com> | 2013-05-17 04:15:26 -0700 |
|---|---|---|
| committer | Rohan Rhishikesh Kanade <rohan.kanade@nttdata.com> | 2013-05-20 03:43:04 -0700 |
| commit | 781815b3b27cc3fcbf153db57deb9bd82ae1d8d3 (patch) | |
| tree | 97ecd72e5c3f7b5999133266a6a9cd526509491c /nova/api | |
| parent | 5c3113b066e61cbc5d8d4d464f8200d4cb5e8395 (diff) | |
| download | nova-781815b3b27cc3fcbf153db57deb9bd82ae1d8d3.tar.gz nova-781815b3b27cc3fcbf153db57deb9bd82ae1d8d3.tar.xz nova-781815b3b27cc3fcbf153db57deb9bd82ae1d8d3.zip | |
Fixes encoding issues for nova api req body.
* Ensure utf-8 encoding for POST/PUT body for api requests
* As per https://wiki.openstack.org/wiki/Encoding.
Fixes bug #1180344
Change-Id: Iea0f16b0c024795fb3aee1cd38bb54ee9da6d90d
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/wsgi.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/api/openstack/wsgi.py b/nova/api/openstack/wsgi.py index 9c5f9855d..9d2f1846c 100644 --- a/nova/api/openstack/wsgi.py +++ b/nova/api/openstack/wsgi.py @@ -917,7 +917,8 @@ class Resource(wsgi.Application): if body: msg = _("Action: '%(action)s', body: " - "%(body)s") % {'action': action, 'body': body} + "%(body)s") % {'action': action, + 'body': unicode(body, 'utf-8')} LOG.debug(msg) LOG.debug(_("Calling method %s") % meth) |
