From d8e9301c54b9e68c9ee7cd9a16e484e4ab111162 Mon Sep 17 00:00:00 2001 From: Dan Berglund Date: Wed, 15 May 2013 08:55:25 +0200 Subject: [PATCH] Added metadata to HEAD-response, boto uses this when only metadata is fetched --- moto/s3/responses.py | 1 + 1 file changed, 1 insertion(+) diff --git a/moto/s3/responses.py b/moto/s3/responses.py index 092379b82..23cbb5410 100644 --- a/moto/s3/responses.py +++ b/moto/s3/responses.py @@ -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: