mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-14 04:08:15 +08:00
Merge d2415e54db2617848cd2d0ac194b4c722c93fca0 into 9968c4bf9d5a99edc3eee2c068a4c9160ece8915
This commit is contained in:
commit
dd8ae45a93
@ -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