From ce49a5e87416fa0fc728dad497ea229b51f3245c Mon Sep 17 00:00:00 2001 From: Poorna Krishnamoorthy Date: Tue, 26 Jan 2021 16:14:08 -0800 Subject: [PATCH] replication: Change proxy flag to string --- api-get-options.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api-get-options.go b/api-get-options.go index 04b156fc01..9e0cb21479 100644 --- a/api-get-options.go +++ b/api-get-options.go @@ -28,7 +28,7 @@ import ( //AdvancedGetOptions for internal use by MinIO server - not intended for client use. type AdvancedGetOptions struct { ReplicationDeleteMarker bool - ReplicationProxyRequest bool + ReplicationProxyRequest string } // GetObjectOptions are used to specify additional headers or options @@ -56,8 +56,8 @@ func (o GetObjectOptions) Header() http.Header { } // this header is set for active-active replication scenario where GET/HEAD // to site A is proxy'd to site B if object/version missing on site A. - if o.Internal.ReplicationProxyRequest { - headers.Set(minIOBucketReplicationProxyRequest, "true") + if o.Internal.ReplicationProxyRequest != "" { + headers.Set(minIOBucketReplicationProxyRequest, o.Internal.ReplicationProxyRequest) } return headers }