From fd4f8ce758e7e8bbe5546a509a95e7a29f88e616 Mon Sep 17 00:00:00 2001 From: Christian Richter Date: Mon, 14 Oct 2024 16:05:17 +0200 Subject: [PATCH] incorporate requested changes Signed-off-by: Christian Richter --- ocis-pkg/handlers/checker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocis-pkg/handlers/checker.go b/ocis-pkg/handlers/checker.go index 30d39d320f..de87bd7f38 100644 --- a/ocis-pkg/handlers/checker.go +++ b/ocis-pkg/handlers/checker.go @@ -108,7 +108,7 @@ func (h *CheckHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { h.conf.logger.Error().Err(err).Msg("check failed") } - w.Header().Set("Content-Type", "text/plain") // fixMe: should be application/json!?! + w.Header().Set("Content-Type", "text/plain") w.WriteHeader(status) if _, err := io.WriteString(w, http.StatusText(status)); err != nil { // io.WriteString should not fail, but if it does, we want to know.