diff --git a/recovery.go b/recovery.go index fdd463f3..309d9b07 100644 --- a/recovery.go +++ b/recovery.go @@ -68,6 +68,9 @@ func CustomRecoveryWithWriter(out io.Writer, handle RecoveryFunc) HandlerFunc { } } } + if err == http.ErrAbortHandler { + brokenPipe = true + } if logger != nil { const stackSkip = 3 if brokenPipe {