diff options
author | Alan Pearce | 2024-05-22 19:02:38 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-23 05:16:24 +0200 |
commit | b424e13a40cccd1f95a8e2e618666980e725e0e9 (patch) | |
tree | 52739b6e02de5afaf5ff96e4aa54fa58e4cc2037 | |
parent | cc40d876890ef8f886c79ed4b7a9700538870772 (diff) | |
download | website-b424e13a40cccd1f95a8e2e618666980e725e0e9.tar.lz website-b424e13a40cccd1f95a8e2e618666980e725e0e9.tar.zst website-b424e13a40cccd1f95a8e2e618666980e725e0e9.zip |
send 204 No Content to /health
-rw-r--r-- | internal/server/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/server/server.go b/internal/server/server.go index 1dbd147..3b90038 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -96,7 +96,7 @@ func New(runtimeConfig *Config) (*Server, error) { }) top.HandleFunc("/health", func(w http.ResponseWriter, _ *http.Request) { - w.WriteHeader(http.StatusOK) + w.WriteHeader(http.StatusNoContent) }) listenAddress := net.JoinHostPort(runtimeConfig.ListenAddress, runtimeConfig.Port) |