Skip to content

Commit

Permalink
Makes HTTP Location Header return as utf-8 as opposed to Unicode.
Browse files Browse the repository at this point in the history
Fixes bug 938114

Change-Id: Ie8a495a8743d2f261fc8f9600cfa1df28a2d5b1e
  • Loading branch information
jcannava committed Feb 21, 2012
1 parent adaf904 commit 9c1de0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova/api/openstack/compute/servers.py
Expand Up @@ -355,7 +355,7 @@ def _add_location(robj):
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
Expand Down

0 comments on commit 9c1de0b

Please sign in to comment.