From 602412d74e5b8e146b17d7ca5ad85c37bd74387b Mon Sep 17 00:00:00 2001 From: Janne Mareike Koschinski <janne@kuschku.de> Date: Fri, 28 Feb 2025 13:14:12 +0100 Subject: [PATCH] fix: correct http status --- matrixbot.go | 1 - 1 file changed, 1 deletion(-) diff --git a/matrixbot.go b/matrixbot.go index 6254142..69ea381 100644 --- a/matrixbot.go +++ b/matrixbot.go @@ -75,7 +75,6 @@ func (bot *MatrixBot) HandleFunc(command string, handler func(bot *MatrixBot, no func (bot *MatrixBot) Serve(endpoint string) { http.HandleFunc("/healthz", func(writer http.ResponseWriter, request *http.Request) { - writer.WriteHeader(200) _, _ = io.WriteString(writer, "OK\n") }) http.HandleFunc(bot.pushUrl.RequestURI(), func(writer http.ResponseWriter, request *http.Request) { -- GitLab