From da2b733fd256f9562d49264ca7b86246001ae2e9 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Tue, 12 Sep 2023 14:57:44 +0200 Subject: [PATCH] simplified the healthcheck --- server/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/main.go b/server/main.go index 877d7575..6fb4aa60 100644 --- a/server/main.go +++ b/server/main.go @@ -116,8 +116,7 @@ func main() { }) mux.HandleFunc("/health", func(w http.ResponseWriter, r *http.Request) { - w.Header().Set("Content-Type", "application/json") - _ = json.NewEncoder(w).Encode(map[string]string{"status": "healthy"}) + _, _ = w.Write([]byte("healthy")) }) static, _ := fs.Sub(swagfs, "swagger")