aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/http/header.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/s3api/http/header.go')
-rw-r--r--weed/s3api/http/header.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/weed/s3api/http/header.go b/weed/s3api/http/header.go
index 7579cf312..d63d50443 100644
--- a/weed/s3api/http/header.go
+++ b/weed/s3api/http/header.go
@@ -38,6 +38,7 @@ const (
// Non-Standard S3 HTTP request constants
const (
AmzIdentityId = "s3-identity-id"
+ AmzAuthType = "s3-auth-type"
AmzIsAdmin = "s3-is-admin" // only set to http request header as a context
)
@@ -51,3 +52,12 @@ func GetBucketAndObject(r *http.Request) (bucket, object string) {
return
}
+
+var PassThroughHeaders = map[string]string{
+ "response-cache-control": "Cache-Control",
+ "response-content-disposition": "Content-Disposition",
+ "response-content-encoding": "Content-Encoding",
+ "response-content-language": "Content-Language",
+ "response-content-type": "Content-Type",
+ "response-expires": "Expires",
+}