diff --git a/recovery.go b/recovery.go index 2955c03a..7d3be93e 100644 --- a/recovery.go +++ b/recovery.go @@ -69,6 +69,9 @@ func CustomRecoveryWithWriter(out io.Writer, handle RecoveryFunc) HandlerFunc { } } } + if errors.Is(err, http.ErrAbortHandler) { + brokenPipe = true + } if logger != nil { stack := stack(3) httpRequest, _ := httputil.DumpRequest(c.Request, false)