about summary refs log tree commit diff stats
path: root/internal
diff options
context:
space:
mode:
authorAlan Pearce2024-05-22 19:02:38 +0200
committerAlan Pearce2024-05-23 05:16:24 +0200
commitb424e13a40cccd1f95a8e2e618666980e725e0e9 (patch)
tree52739b6e02de5afaf5ff96e4aa54fa58e4cc2037 /internal
parentcc40d876890ef8f886c79ed4b7a9700538870772 (diff)
downloadwebsite-b424e13a40cccd1f95a8e2e618666980e725e0e9.tar.lz
website-b424e13a40cccd1f95a8e2e618666980e725e0e9.tar.zst
website-b424e13a40cccd1f95a8e2e618666980e725e0e9.zip
send 204 No Content to /health
Diffstat (limited to 'internal')
-rw-r--r--internal/server/server.go2
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)