Suppress expected error

This commit is contained in:
世界
2022-08-25 10:56:57 +08:00
parent 9af746ba2f
commit b5d4b267e2
3 changed files with 18 additions and 2 deletions

View File

@@ -603,5 +603,8 @@ func wrapHttpError(err error) error {
if strings.Contains(err.Error(), "body closed by handler") {
return net.ErrClosed
}
if strings.Contains(err.Error(), "canceled with error code 268") {
return io.EOF
}
return err
}