From 64a824f41e6ba1fb685d43814abd2994da11a6ec Mon Sep 17 00:00:00 2001 From: Shubhendu Ram Tripathi Date: Tue, 5 Mar 2024 13:01:13 +0530 Subject: [PATCH] Added `x-minio-replication-object-size` to allowed headers Need to send actual object size while replicating a multipart object as parts would be replicated as is with their encrypted content and content length. Later at target while creating xl.meta for the completed object, we need the actual object size be set as `X-Minio-Internal-actual-size` Signed-off-by: Shubhendu Ram Tripathi --- utils.go | 1 + 1 file changed, 1 insertion(+) diff --git a/utils.go b/utils.go index 46123ea77..2109c1761 100644 --- a/utils.go +++ b/utils.go @@ -517,6 +517,7 @@ var supportedReplicationEncryptionHeaders = map[string]bool{ "x-minio-replication-server-side-encryption-seal-algorithm": true, "x-minio-replication-server-side-encryption-iv": true, "x-minio-replication-encrypted-multipart": true, + "x-minio-replication-object-size": true, // Add more supported headers here. // Must be lower case. }