mirror of
https://github.com/restic/restic.git
synced 2025-12-14 11:41:55 +00:00
6
vendor/github.com/minio/minio-go/api-put-object-multipart.go
generated
vendored
6
vendor/github.com/minio/minio-go/api-put-object-multipart.go
generated
vendored
@@ -259,7 +259,11 @@ func (c Client) uploadPart(ctx context.Context, bucketName, objectName, uploadID
|
||||
|
||||
// Set encryption headers, if any.
|
||||
customHeader := make(http.Header)
|
||||
if sse != nil {
|
||||
// https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadUploadPart.html
|
||||
// Server-side encryption is supported by the S3 Multipart Upload actions.
|
||||
// Unless you are using a customer-provided encryption key, you don't need
|
||||
// to specify the encryption parameters in each UploadPart request.
|
||||
if sse != nil && sse.Type() == encrypt.SSEC {
|
||||
sse.Marshal(customHeader)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user