when getting a key (HEAD request) return key.value instead of empty string. This is will mirror boto's method.
This commit is contained in:
parent
23833bc16e
commit
c75a233f6c
@ -164,7 +164,7 @@ def _key_response(request, full_url, headers):
|
|||||||
if key:
|
if key:
|
||||||
headers.update(key.metadata)
|
headers.update(key.metadata)
|
||||||
headers.update(key.response_dict)
|
headers.update(key.response_dict)
|
||||||
return 200, headers, ""
|
return 200, headers, key.value
|
||||||
else:
|
else:
|
||||||
return 404, headers, ""
|
return 404, headers, ""
|
||||||
elif method == 'DELETE':
|
elif method == 'DELETE':
|
||||||
|
Loading…
Reference in New Issue
Block a user