From 06223418787f6d196075b67827e1c70d10ec524c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Rasmussen?= Date: Tue, 19 Jul 2022 10:38:21 +0200 Subject: [PATCH] Fix health check --- internal/api/http.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/api/http.go b/internal/api/http.go index 4a7fafb..edc098c 100644 --- a/internal/api/http.go +++ b/internal/api/http.go @@ -31,9 +31,11 @@ func (a *API) HealthCheck(w http.ResponseWriter, r *http.Request) { default: w.WriteHeader(http.StatusServiceUnavailable) w.Write([]byte("Unhealthy")) + return } // Respond OK + w.WriteHeader(http.StatusOK) w.Write([]byte("Healthy")) }