server: use uppercase per-upstream status in /health; verify in tests
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I26a71054250c71747e92c2803d8c39ed6a6a6964
This commit is contained in:
parent
985ed1090a
commit
a45ee57da7
2 changed files with 21 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ func (s *Server) handleHealth(w http.ResponseWriter, _ *http.Request) {
|
|||
for i, h := range sorted {
|
||||
upstreams[i] = upstreamStatus{
|
||||
URL: h.URL,
|
||||
Status: strings.ToLower(h.Status.String()),
|
||||
Status: h.Status.String(),
|
||||
LatencyMs: h.EMALatency,
|
||||
ConsecutiveFails: h.ConsecutiveFails,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue