summaryrefslogtreecommitdiff
path: root/api-put-object-multipart.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 /api-put-object-multipart.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 'api-put-object-multipart.go')
-rw-r--r--api-put-object-multipart.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/api-put-object-multipart.go b/api-put-object-multipart.go
index 52dc069..db92520 100644
--- a/api-put-object-multipart.go
+++ b/api-put-object-multipart.go
@@ -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 && sse.Type() != encrypt.S3 && sse.Type() != encrypt.KMS {
+ // 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)
}