batch-repl: Replicate missing metadata and standard headers (#18484)

- Replicate Expires when the source is local or remote
- Replicate metadata when the source is remote
This commit is contained in:
Anis Eleuch
2023-11-18 19:12:44 -08:00
committed by GitHub
parent 8317557f70
commit 02331a612c
5 changed files with 10 additions and 3 deletions

View File

@@ -777,6 +777,7 @@ func putReplicationOpts(ctx context.Context, sc string, objInfo ObjectInfo) (put
UserMetadata: meta,
ContentType: objInfo.ContentType,
ContentEncoding: objInfo.ContentEncoding,
Expires: objInfo.Expires,
StorageClass: sc,
Internal: minio.AdvancedPutOptions{
SourceVersionID: objInfo.VersionID,