Skip to content

Commit

Permalink
remove sse-kms header in completeMultipartUpload
Browse files Browse the repository at this point in the history
continuation of #1777
  • Loading branch information
harshavardhana committed Feb 27, 2023
1 parent 1861f7b commit 3b3add1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api-put-object-multipart.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,8 @@ func (c *Client) completeMultipartUpload(ctx context.Context, bucketName, object

headers := opts.Header()
if s3utils.IsAmazonEndpoint(*c.endpointURL) {
headers.Del(encrypt.SseGenericHeader)
headers.Del(encrypt.SseKmsKeyID) // Remove X-Amz-Server-Side-Encryption-Aws-Kms-Key-Id not supported in CompleteMultipartUpload
headers.Del(encrypt.SseGenericHeader) // Remove X-Amz-Server-Side-Encryption not supported in CompleteMultipartUpload
}

// Instantiate all the complete multipart buffer.
Expand Down

0 comments on commit 3b3add1

Please sign in to comment.