From 04789a59fa01be7517ab11fca8d9f9a5e01aad1b Mon Sep 17 00:00:00 2001 From: Konstantinos Koukopoulos Date: Mon, 30 Sep 2013 12:10:05 +0300 Subject: [PATCH] don't forget to send the etag in the headers when uploading a part --- moto/s3/responses.py | 1 + 1 file changed, 1 insertion(+) diff --git a/moto/s3/responses.py b/moto/s3/responses.py index a0a6a6989..1b9cf8cac 100644 --- a/moto/s3/responses.py +++ b/moto/s3/responses.py @@ -145,6 +145,7 @@ def _key_response(request, full_url, headers): part_number = int(query['partNumber'][0]) key = s3_backend.set_part(bucket_name, upload_id, part_number, body) template = Template(S3_MULTIPART_UPLOAD_RESPONSE) + headers.update(key.response_dict) return 200, headers, template.render(part=key) if 'x-amz-copy-source' in request.headers: