Use requests.header instead of plain dict
This commit is contained in:
parent
9b3fa83730
commit
0c910864d3
2 changed files with 4 additions and 3 deletions
|
|
@ -39,8 +39,9 @@ class KmsResponse(BaseResponse):
|
|||
try:
|
||||
key = self.kms_backend.describe_key(key_id)
|
||||
except KeyError:
|
||||
self.headers['status'] = 404
|
||||
return "{}", self.headers
|
||||
headers = dict(self.headers)
|
||||
headers['status'] = 404
|
||||
return "{}", headers
|
||||
return json.dumps(key.to_dict())
|
||||
|
||||
def list_keys(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue