summaryrefslogtreecommitdiff
path: root/vendor/github.com/minio/minio-go/v7/utils.go
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2024-06-24 08:07:15 +0000
committerLibravatar GitHub <noreply@github.com>2024-06-24 08:07:15 +0000
commitb9864e83a01bef962eef843cd441a162b937b4b0 (patch)
tree75f451990dbeb9f07e2e48f25e25de88bb6493df /vendor/github.com/minio/minio-go/v7/utils.go
parent[chore]: Bump github.com/yuin/goldmark from 1.7.2 to 1.7.3 (#3034) (diff)
downloadgotosocial-b9864e83a01bef962eef843cd441a162b937b4b0.tar.xz
[chore]: Bump github.com/minio/minio-go/v7 from 7.0.71 to 7.0.72 (#3037)
Diffstat (limited to 'vendor/github.com/minio/minio-go/v7/utils.go')
-rw-r--r--vendor/github.com/minio/minio-go/v7/utils.go16
1 files changed, 3 insertions, 13 deletions
diff --git a/vendor/github.com/minio/minio-go/v7/utils.go b/vendor/github.com/minio/minio-go/v7/utils.go
index 252f45223..a5beb371f 100644
--- a/vendor/github.com/minio/minio-go/v7/utils.go
+++ b/vendor/github.com/minio/minio-go/v7/utils.go
@@ -510,19 +510,9 @@ func isAmzHeader(headerKey string) bool {
return strings.HasPrefix(key, "x-amz-meta-") || strings.HasPrefix(key, "x-amz-grant-") || key == "x-amz-acl" || isSSEHeader(headerKey) || strings.HasPrefix(key, "x-amz-checksum-")
}
-var supportedReplicationEncryptionHeaders = map[string]bool{
- "x-minio-replication-server-side-encryption-sealed-key": true,
- "x-minio-replication-server-side-encryption-seal-algorithm": true,
- "x-minio-replication-server-side-encryption-iv": true,
- "x-minio-replication-encrypted-multipart": true,
- "x-minio-replication-actual-object-size": true,
- // Add more supported headers here.
- // Must be lower case.
-}
-
-// isValidReplicationEncryptionHeader returns true if header is one of valid replication encryption headers
-func isValidReplicationEncryptionHeader(headerKey string) bool {
- return supportedReplicationEncryptionHeaders[strings.ToLower(headerKey)]
+// isMinioHeader returns true if header is x-minio- header.
+func isMinioHeader(headerKey string) bool {
+ return strings.HasPrefix(strings.ToLower(headerKey), "x-minio-")
}
// supportedQueryValues is a list of query strings that can be passed in when using GetObject.