diff options
| author | Jason Cannavale <jason.cannavale@rackspace.com> | 2012-02-21 14:32:55 -0600 |
|---|---|---|
| committer | Jason Cannavale <jason.cannavale@rackspace.com> | 2012-02-21 16:54:53 -0600 |
| commit | 9c1de0b4cd7b9b1c7db65798a5308ae76fad1780 (patch) | |
| tree | 88054ba7052f3200d97ab40fd13f84678fb91ed6 /nova | |
| parent | adaf9049c8fb3652c0962909a3c835e1724d8a17 (diff) | |
Makes HTTP Location Header return as utf-8 as opposed to Unicode.
Fixes bug 938114
Change-Id: Ie8a495a8743d2f261fc8f9600cfa1df28a2d5b1e
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/api/openstack/compute/servers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/compute/servers.py b/nova/api/openstack/compute/servers.py index 26ed42f20..36316ac71 100644 --- a/nova/api/openstack/compute/servers.py +++ b/nova/api/openstack/compute/servers.py @@ -355,7 +355,7 @@ class Controller(wsgi.Controller): link = filter(lambda l: l['rel'] == 'self', robj.obj['server']['links']) if link: - robj['Location'] = link[0]['href'] + robj['Location'] = link[0]['href'].encode('utf-8') # Convenience return return robj |
