issues
search
cli
/
go-gh
A Go module for interacting with gh and the GitHub API from the command line.
https://pkg.go.dev/github.com/cli/go-gh/v2
MIT License
322
stars
45
forks
source link
Fix HTTP error handling in `RESTClient.Request()` method
#82
Closed
mislav
closed
1 year ago
mislav
commented
1 year ago
Ensure that
Request()
calls HandleHTTPError so that any JSON error body properly gets parsed;
Ensure that response body is closed after reading the error response.
Ref.
https://github.com/cli/cli/issues/6429
Request()
calls HandleHTTPError so that any JSON error body properly gets parsed;Ref. https://github.com/cli/cli/issues/6429