Skip to content

Commit ed6adb9

Browse files
BigSullybar
and
bar
authored
Respond to /health and /version by request path rather than by the whole url string (jpillora#328)
Co-authored-by: bar <[email protected]>
1 parent 28a5018 commit ed6adb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/server_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func (s *Server) handleClientHandler(w http.ResponseWriter, r *http.Request) {
3434
return
3535
}
3636
//no proxy defined, provide access to health/version checks
37-
switch r.URL.String() {
37+
switch r.URL.Path {
3838
case "/health":
3939
w.Write([]byte("OK\n"))
4040
return

0 commit comments

Comments
 (0)