mirror of https://github.com/linkerd/linkerd2.git
* 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> |
||
---|---|---|
.. | ||
protohttp.go | ||
protohttp_test.go |