S3: Add retro-compatibility for Delete_key

This commit is contained in:
Andrei Marcu 2020-03-06 15:04:32 -08:00
parent a86a144485
commit fabb8f2dd7
1 changed files with 4 additions and 0 deletions

View File

@ -102,6 +102,10 @@ func unmapMetadata(input map[string]*string) (m backends.Metadata, err error) {
}
m.DeleteKey = aws.StringValue(input["Deletekey"])
if m.DeleteKey == "" {
m.DeleteKey = aws.StringValue(input["Delete_key"])
}
m.Mimetype = aws.StringValue(input["Mimetype"])
m.Sha256sum = aws.StringValue(input["Sha256sum"])
return