From fabb8f2dd7afba2df68a3c243f7e04fc416eff78 Mon Sep 17 00:00:00 2001 From: Andrei Marcu Date: Fri, 6 Mar 2020 15:04:32 -0800 Subject: [PATCH] S3: Add retro-compatibility for Delete_key --- backends/s3/s3.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backends/s3/s3.go b/backends/s3/s3.go index 65f44b3..f229176 100644 --- a/backends/s3/s3.go +++ b/backends/s3/s3.go @@ -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