mirror of
https://github.com/ZizzyDizzyMC/linx-server.git
synced 2026-01-23 02:14:33 +00:00
S3: Add retro-compatibility for Delete_key
This commit is contained in:
parent
a86a144485
commit
fabb8f2dd7
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue