diff options
Diffstat (limited to 'plugins/http/errors.go')
-rw-r--r-- | plugins/http/errors.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/http/errors.go b/plugins/http/errors.go index fb8762ef..5889aa76 100644 --- a/plugins/http/errors.go +++ b/plugins/http/errors.go @@ -16,7 +16,7 @@ var errEPIPE = errors.New("EPIPE(32) -> connection reset by peer") func handleWriteError(err error) error { if netErr, ok2 := err.(*net.OpError); ok2 { if syscallErr, ok3 := netErr.Err.(*os.SyscallError); ok3 { - if syscallErr.Err == syscall.EPIPE { + if errors.Is(syscallErr.Err, syscall.EPIPE) { return errEPIPE } } |