diff --git a/pkg/backends/clickhouse/handler_health.go b/pkg/backends/clickhouse/handler_health.go index 20820a95f..6ca1d8195 100644 --- a/pkg/backends/clickhouse/handler_health.go +++ b/pkg/backends/clickhouse/handler_health.go @@ -49,7 +49,7 @@ func (c *Client) HealthHandler(w http.ResponseWriter, r *http.Request) { rsc := request.GetResources(r) req = req.WithContext(tctx.WithHealthCheckFlag(tctx.WithResources(context.Background(), rsc), true)) - req.Header = c.healthHeaders + req.Header = c.healthHeaders.Clone() engines.DoProxy(w, req, true) } diff --git a/pkg/backends/irondb/handler_health.go b/pkg/backends/irondb/handler_health.go index 4ab8faff9..23f70a0ea 100644 --- a/pkg/backends/irondb/handler_health.go +++ b/pkg/backends/irondb/handler_health.go @@ -43,7 +43,7 @@ func (c *Client) HealthHandler(w http.ResponseWriter, r *http.Request) { rsc := request.GetResources(r) req = req.WithContext(tctx.WithHealthCheckFlag(tctx.WithResources(context.Background(), rsc), true)) - req.Header = c.healthHeaders + req.Header = c.healthHeaders.Clone() engines.DoProxy(w, req, true) } diff --git a/pkg/backends/prometheus/handler_health.go b/pkg/backends/prometheus/handler_health.go index 59b52a24b..bc1a45bb1 100644 --- a/pkg/backends/prometheus/handler_health.go +++ b/pkg/backends/prometheus/handler_health.go @@ -45,7 +45,7 @@ func (c *Client) HealthHandler(w http.ResponseWriter, r *http.Request) { rsc := request.GetResources(r) req = req.WithContext(tctx.WithHealthCheckFlag(tctx.WithResources(context.Background(), rsc), true)) - req.Header = c.healthHeaders + req.Header = c.healthHeaders.Clone() engines.DoProxy(w, req, true) } diff --git a/pkg/backends/reverseproxy/handler_health.go b/pkg/backends/reverseproxy/handler_health.go index 0e1700a1b..707ddb945 100644 --- a/pkg/backends/reverseproxy/handler_health.go +++ b/pkg/backends/reverseproxy/handler_health.go @@ -44,7 +44,7 @@ func (c *Client) HealthHandler(w http.ResponseWriter, r *http.Request) { rsc := request.GetResources(r) req = req.WithContext(tctx.WithHealthCheckFlag(tctx.WithResources(context.Background(), rsc), true)) - req.Header = c.healthHeaders + req.Header = c.healthHeaders.Clone() engines.DoProxy(w, req, true) } diff --git a/pkg/backends/reverseproxycache/handler_health.go b/pkg/backends/reverseproxycache/handler_health.go index f0c790468..93f72d907 100644 --- a/pkg/backends/reverseproxycache/handler_health.go +++ b/pkg/backends/reverseproxycache/handler_health.go @@ -44,7 +44,7 @@ func (c *Client) HealthHandler(w http.ResponseWriter, r *http.Request) { rsc := request.GetResources(r) req = req.WithContext(tctx.WithHealthCheckFlag(tctx.WithResources(context.Background(), rsc), true)) - req.Header = c.healthHeaders + req.Header = c.healthHeaders.Clone() engines.DoProxy(w, req, true) }