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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user