Suppress bad http2 error

This commit is contained in:
世界 2022-09-15 15:34:52 +08:00
parent a5402ffb69
commit cfe14f2817
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -26,7 +26,7 @@ func WrapH2(err error) error {
if err == io.ErrUnexpectedEOF { if err == io.ErrUnexpectedEOF {
return io.EOF return io.EOF
} }
if Contains(err, "client disconnected", "body closed by handler") { if Contains(err, "client disconnected", "body closed by handler", "response body closed", "; CANCEL") {
return net.ErrClosed return net.ErrClosed
} }
return err return err