don't forget to send the etag in the headers when uploading a part

This commit is contained in:
Konstantinos Koukopoulos 2013-09-30 12:10:05 +03:00
parent 9746e72e1d
commit 04789a59fa

View File

@ -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: