mirror of
https://github.com/pgsty/minio.git
synced 2026-07-27 16:06:16 +03:00
feat: SSE-KMS use uuid instead of read all data to md5. (#17958)
This commit is contained in:
@@ -119,6 +119,7 @@ import (
|
||||
|
||||
"github.com/minio/minio/internal/fips"
|
||||
"github.com/minio/minio/internal/hash/sha256"
|
||||
xhttp "github.com/minio/minio/internal/http"
|
||||
"github.com/minio/sio"
|
||||
)
|
||||
|
||||
@@ -263,6 +264,12 @@ func FromContentMD5(h http.Header) (ETag, error) {
|
||||
return ETag(b), nil
|
||||
}
|
||||
|
||||
// ContentMD5Requested - for http.request.header is not request Content-Md5
|
||||
func ContentMD5Requested(h http.Header) bool {
|
||||
_, ok := h[xhttp.ContentMD5]
|
||||
return ok
|
||||
}
|
||||
|
||||
// Multipart computes an S3 multipart ETag given a list of
|
||||
// S3 singlepart ETags. It returns nil if the list of
|
||||
// ETags is empty.
|
||||
|
||||
Reference in New Issue
Block a user