Skip to content

Commit

Permalink
fix: only SSE-C headers should be applied to destination (#1359)
Browse files Browse the repository at this point in the history
closes #1358
  • Loading branch information
harshavardhana committed Aug 4, 2020
1 parent f0c6c8f commit 0a14c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-compose-object.go
Expand Up @@ -454,7 +454,7 @@ func (c Client) ComposeObject(ctx context.Context, dst CopyDestOptions, srcs ...
for i, src := range srcs {
var h = make(http.Header)
src.Marshal(h)
if dst.Encryption != nil {
if dst.Encryption != nil && dst.Encryption.Type() == encrypt.SSEC {
dst.Encryption.Marshal(h)
}

Expand Down

0 comments on commit 0a14c1d

Please sign in to comment.