diff --git a/handlers/healthcheck.go b/handlers/healthcheck.go index 57d57d17..4dd569ad 100644 --- a/handlers/healthcheck.go +++ b/handlers/healthcheck.go @@ -2,7 +2,6 @@ package handlers import ( "encoding/json" - "io" "net/http" "github.com/julienschmidt/httprouter" @@ -27,7 +26,7 @@ func (d *CatalystAPIHandlersCollection) Healthcheck() httprouter.Handle { b = []byte(`{"status": "marshalling status failed"}`) } - if _, err := io.WriteString(w, string(b)); err != nil { + if _, err := w.Write(b); err != nil { log.LogNoRequestID("Failed to write HTTP response for " + req.URL.RawPath) } }