Skip to content

Commit

Permalink
Fix health endpoint HTTP 431 bug (#531) (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
tminor authored Feb 4, 2021
1 parent 91a90e0 commit 48a8b6d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/backends/clickhouse/handler_health.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

}
Expand Down
2 changes: 1 addition & 1 deletion pkg/backends/irondb/handler_health.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

}
Expand Down
2 changes: 1 addition & 1 deletion pkg/backends/prometheus/handler_health.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/backends/reverseproxy/handler_health.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/backends/reverseproxycache/handler_health.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 48a8b6d

Please sign in to comment.