send 204 No Content to /health
Alan Pearce alan@alanpearce.eu
Wed, 22 May 2024 19:02:38 +0200
1 files changed, 1 insertions(+), 1 deletions(-)
jump to
M internal/server/server.go → internal/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)