From e4b79025fc1a8324e1fec69aeef58b405b95e582 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Sun, 4 May 2025 22:00:00 +0200 Subject: [PATCH] app: throw away not found body Signed-off-by: Kristoffer Dalby --- hscontrol/app.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/hscontrol/app.go b/hscontrol/app.go index 0b4ee72c..3b4be52f 100644 --- a/hscontrol/app.go +++ b/hscontrol/app.go @@ -1029,13 +1029,10 @@ func notFoundHandler( writer http.ResponseWriter, req *http.Request, ) { - body, _ := io.ReadAll(req.Body) - log.Trace(). Interface("header", req.Header). Interface("proto", req.Proto). Interface("url", req.URL). - Bytes("body", body). Msg("Request did not match") writer.WriteHeader(http.StatusNotFound) }