add utf-8 charset to multipart-manifest=get resp

Change-Id: Ic06e8b07a4db4ccde633f3b56a49f198cdd467cb
This commit is contained in:
David Goetz 2013-07-26 10:00:33 -07:00
parent 541c189533
commit 750684f754
2 changed files with 2 additions and 0 deletions

View File

@ -520,6 +520,7 @@ class ObjectController(Controller):
'X-Copy-From' not in req.headers and \
self.app.allow_static_large_object:
resp.content_type = 'application/json'
resp.charset = 'utf-8'
if config_true_value(resp.headers.get('x-static-large-object')) and \
req.params.get('multipart-manifest') != 'get' and \

View File

@ -1274,6 +1274,7 @@ class TestObjectController(unittest.TestCase):
self.assertEqual(resp.status_int, 200)
self.assertEqual(resp.body, json_listing)
self.assertEqual(resp.content_type, 'application/json')
self.assertEqual(resp.charset.lower(), 'utf-8')
self.assertEqual(
requested,