Merge "Makes HTTP Location Header return as utf-8 as opposed to Unicode."

This commit is contained in:
Jenkins 2012-02-22 15:32:29 +00:00 committed by Gerrit Code Review
commit 861c0d9e21

View File

@ -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