replication: detect proxy header presence correctly (#16489)

This commit is contained in:
Poorna
2023-01-27 01:29:32 -08:00
committed by GitHub
parent d19cbc81b5
commit ed20134a7b
2 changed files with 2 additions and 5 deletions
+1 -1
View File
@@ -1943,7 +1943,7 @@ func getProxyTargets(ctx context.Context, bucket, object string, opts ObjectOpti
if opts.VersionSuspended {
return &madmin.BucketTargets{}
}
if !opts.ProxyRequest {
if opts.ProxyRequest || (opts.ProxyHeaderSet && !opts.ProxyRequest) {
return &madmin.BucketTargets{}
}
cfg, err := getReplicationConfig(ctx, bucket)