We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 41e1e0d + ec8f5ca commit 1585603Copy full SHA for 1585603
1 file changed
pkg/api/errors.go
@@ -98,6 +98,8 @@ func matchPath(p, expect string) bool {
98
}
99
100
// HandleHTTPError parses a http.Response into a HTTPError.
101
+//
102
+// The function attempts to read the response's body, but it does not close it.
103
func HandleHTTPError(resp *http.Response) error {
104
httpError := &HTTPError{
105
Headers: resp.Header,
0 commit comments