Clean up Location header in Bucket Response

Response object has 'location' property so this allows
to use that property insetead of headers dictionary.

Change-Id: I26cb0815f3a8699de68ea505844ba2f99804fcac
This commit is contained in:
Kota Tsuyuzaki
2014-07-21 19:45:41 -07:00
parent 450e075aaf
commit 79d5f8945a

View File

@@ -119,7 +119,7 @@ class BucketController(Controller):
resp = req.get_response(self.app)
resp.status = HTTP_OK
resp.headers.update({'Location': '/' + req.container_name})
resp.location = '/' + req.container_name
return resp