linkerd2/pkg/protohttp
Tarun Pothulapati 3a16baa141
Use errors.Is instead of checking underlying err messages (#5140)
* Use errors.Is instead of checking underlying err messages

Fixes #5132

This PR replaces the usage of `strings.hasSuffix` with `errors.Is`
wherever error messages are being checked. So, that the code is not
effected by changes in the underlying message. Also adds a string
const for http2 response body closed error

Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
2020-10-28 21:33:17 +05:30
..
protohttp.go Use errors.Is instead of checking underlying err messages (#5140) 2020-10-28 21:33:17 +05:30
protohttp_test.go Fix spelling mistakes using codespell (#4700) 2020-07-07 17:07:22 -05:00