From 0a14c1dd2adfce55c2be4c5e3bd0d3936f50dcad Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 4 Aug 2020 11:09:36 -0700 Subject: [PATCH] fix: only SSE-C headers should be applied to destination (#1359) closes #1358 --- api-compose-object.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-compose-object.go b/api-compose-object.go index cb2e899e5..e10737558 100644 --- a/api-compose-object.go +++ b/api-compose-object.go @@ -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) }