all repos — homestead @ 3738b832b13ab0160061941ec1115811874a5b34

Code for my website

send 204 No Content to /health

Alan Pearce
commit

3738b832b13ab0160061941ec1115811874a5b34

parent

0b020b0b0accd38af5129279c1b5614eb04e912d

1 file changed, 1 insertion(+), 1 deletion(-)

jump to
M internal/server/server.gointernal/server/server.go
@@ -96,7 +96,7 @@ http.Redirect(w, r, newURL.String(), 301)
}) top.HandleFunc("/health", func(w http.ResponseWriter, _ *http.Request) { - w.WriteHeader(http.StatusOK) + w.WriteHeader(http.StatusNoContent) }) listenAddress := net.JoinHostPort(runtimeConfig.ListenAddress, runtimeConfig.Port)