Added metadata to HEAD-response, boto uses this when only metadata is fetched

This commit is contained in:
Dan Berglund 2013-05-15 08:55:25 +02:00
parent 3880be5ea9
commit d8e9301c54

View File

@ -151,6 +151,7 @@ def _key_response(request, full_url, headers):
elif method == 'HEAD':
key = s3_backend.get_key(bucket_name, key_name)
if key:
headers.update(key.metadata)
headers.update(key.response_dict)
return 200, headers, ""
else: