Added metadata to HEAD-response, boto uses this when only metadata is fetched
This commit is contained in:
parent
3880be5ea9
commit
d8e9301c54
@ -151,6 +151,7 @@ def _key_response(request, full_url, headers):
|
|||||||
elif method == 'HEAD':
|
elif method == 'HEAD':
|
||||||
key = s3_backend.get_key(bucket_name, key_name)
|
key = s3_backend.get_key(bucket_name, key_name)
|
||||||
if key:
|
if key:
|
||||||
|
headers.update(key.metadata)
|
||||||
headers.update(key.response_dict)
|
headers.update(key.response_dict)
|
||||||
return 200, headers, ""
|
return 200, headers, ""
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user