replication: detect proxy header presence correctly (#16489)

This commit is contained in:
Poorna authored and GitHub committed 2023-01-27 01:29:32 -08:00
1 parent d19cbc81b5
commit ed20134a7b
2 files changed
+2 -5

No files matched your search

+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)