mirror of
https://github.com/gin-gonic/gin.git
synced 2026-06-27 03:58:18 +08:00
Merge d2415e54db2617848cd2d0ac194b4c722c93fca0 into 19c2d5c0d1d096e1014fb7be62116ee9025d0f56
This commit is contained in:
commit
8b92b92d7a
@ -68,6 +68,9 @@ func CustomRecoveryWithWriter(out io.Writer, handle RecoveryFunc) HandlerFunc {
|
||||
}
|
||||
}
|
||||
}
|
||||
if errors.Is(err, http.ErrAbortHandler) {
|
||||
brokenPipe = true
|
||||
}
|
||||
if logger != nil {
|
||||
const stackSkip = 3
|
||||
if brokenPipe {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user