mirror of
https://github.com/juanfont/headscale.git
synced 2025-05-19 08:48:25 +00:00
app: throw away not found body (#2566)
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
9a86ffc102
commit
1dddd3e93b
@ -1029,13 +1029,10 @@ func notFoundHandler(
|
|||||||
writer http.ResponseWriter,
|
writer http.ResponseWriter,
|
||||||
req *http.Request,
|
req *http.Request,
|
||||||
) {
|
) {
|
||||||
body, _ := io.ReadAll(req.Body)
|
|
||||||
|
|
||||||
log.Trace().
|
log.Trace().
|
||||||
Interface("header", req.Header).
|
Interface("header", req.Header).
|
||||||
Interface("proto", req.Proto).
|
Interface("proto", req.Proto).
|
||||||
Interface("url", req.URL).
|
Interface("url", req.URL).
|
||||||
Bytes("body", body).
|
|
||||||
Msg("Request did not match")
|
Msg("Request did not match")
|
||||||
writer.WriteHeader(http.StatusNotFound)
|
writer.WriteHeader(http.StatusNotFound)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user