replication: fix target bucket passed on GET proxy (#16495)

This commit is contained in:
Poorna 2023-01-27 10:24:51 -08:00 committed by GitHub
parent ed20134a7b
commit 820d94447c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1918,7 +1918,7 @@ func proxyGetToReplicationTarget(ctx context.Context, bucket, object string, rs
return nil, proxy, err
}
c := minio.Core{Client: tgt.Client}
obj, _, h, err := c.GetObject(ctx, bucket, object, gopts)
obj, _, h, err := c.GetObject(ctx, tgt.Bucket, object, gopts)
if err != nil {
return nil, proxy, err
}