all repos — website @ b424e13a40cccd1f95a8e2e618666980e725e0e9

My website

send 204 No Content to /health
Alan Pearce alan@alanpearce.eu
Wed, 22 May 2024 19:02:38 +0200
commit

b424e13a40cccd1f95a8e2e618666980e725e0e9

parent

cc40d876890ef8f886c79ed4b7a9700538870772

1 files changed, 1 insertions(+), 1 deletions(-)

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)