summaryrefslogtreecommitdiff
path: root/utils.go
diff options
context:
space:
mode:
authorFélix Sipma <felix+debian@gueux.org>2018-12-08 10:06:05 +0100
committerFélix Sipma <felix+debian@gueux.org>2018-12-08 10:06:05 +0100
commit3d051b974f4ea81f56380fdd6067c8b264b329a7 (patch)
treef48909a88b7df1c5b3a4248a0811550dcab16701 /utils.go
parent5df83236b23b9200b3ec2b50302b7330b1b998f6 (diff)
parent43652cf02b0139f53e70c14f9324371a5a5d35a9 (diff)
Update upstream source from tag 'upstream/6.0.11'
Update to upstream version '6.0.11' with Debian dir feb476a1f55f97e3a54f71ac42feb7cb301de1b8
Diffstat (limited to 'utils.go')
-rw-r--r--utils.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils.go b/utils.go
index f80e25c..8483f38 100644
--- a/utils.go
+++ b/utils.go
@@ -223,6 +223,7 @@ var supportedHeaders = []string{
"content-disposition",
"content-language",
"x-amz-website-redirect-location",
+ "expires",
// Add more supported headers here.
}
@@ -267,5 +268,5 @@ func isSSEHeader(headerKey string) bool {
func isAmzHeader(headerKey string) bool {
key := strings.ToLower(headerKey)
- return strings.HasPrefix(key, "x-amz-meta-") || key == "x-amz-acl"
+ return strings.HasPrefix(key, "x-amz-meta-") || strings.HasPrefix(key, "x-amz-grant-") || key == "x-amz-acl" || isSSEHeader(headerKey)
}