From e38b4fbe728ecff25d6a312205be9be02f422666 Mon Sep 17 00:00:00 2001 From: bar Date: Wed, 19 Jan 2022 20:20:25 +0800 Subject: [PATCH] Respond to /health and /version by request path rather than by the whole url string #327 --- server/server_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server_handler.go b/server/server_handler.go index 85229e97..f5804836 100644 --- a/server/server_handler.go +++ b/server/server_handler.go @@ -34,7 +34,7 @@ func (s *Server) handleClientHandler(w http.ResponseWriter, r *http.Request) { return } //no proxy defined, provide access to health/version checks - switch r.URL.String() { + switch r.URL.Path { case "/health": w.Write([]byte("OK\n")) return