From 1dddd3e93b38e5ec592e91eba136075a9e488382 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Sun, 4 May 2025 23:06:44 +0300 Subject: [PATCH] app: throw away not found body (#2566) 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) }