From d74b8207616a7a02e519de3eebc2d07b3c17c257 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Tue, 10 Jul 2018 00:43:11 +0100 Subject: [PATCH] Fix multipart copy of a large encrypted object --- 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 4f8d74e8c..fc5171d1b 100644 --- a/api-compose-object.go +++ b/api-compose-object.go @@ -455,7 +455,7 @@ func (c Client) ComposeObjectWithProgress(dst DestinationInfo, srcs []SourceInfo for i, src := range srcs { h := src.Headers if src.encryption != nil { - src.encryption.Marshal(h) + encrypt.SSECopy(src.encryption).Marshal(h) } // Add destination encryption headers if dst.encryption != nil {