Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: potential panics on error #1389

Merged
merged 1 commit into from
Jan 29, 2024
Merged

fix: potential panics on error #1389

merged 1 commit into from
Jan 29, 2024

Conversation

kangmingtay
Copy link
Member

What kind of change does this PR introduce?

  • In the net/http Do method, if an error is returned, the http response should be ignored. Currently, we defer closing the response body which leads to a nil pointer error

@kangmingtay kangmingtay requested a review from a team as a code owner January 29, 2024 09:38
@kangmingtay kangmingtay merged commit 5ad703b into master Jan 29, 2024
2 checks passed
@kangmingtay kangmingtay deleted the km/fix-panics branch January 29, 2024 09:47
Copy link
Contributor

🎉 This PR is included in version 2.139.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

uxodb pushed a commit to uxodb/auth that referenced this pull request Nov 13, 2024
## What kind of change does this PR introduce?
* In the [`net/http` Do method](https://pkg.go.dev/net/http#Client.Do),
if an error is returned, the http response should be ignored. Currently,
we defer closing the response body which leads to a nil pointer error
LashaJini pushed a commit to LashaJini/auth that referenced this pull request Nov 13, 2024
## What kind of change does this PR introduce?
* In the [`net/http` Do method](https://pkg.go.dev/net/http#Client.Do),
if an error is returned, the http response should be ignored. Currently,
we defer closing the response body which leads to a nil pointer error
LashaJini pushed a commit to LashaJini/auth that referenced this pull request Nov 15, 2024
## What kind of change does this PR introduce?
* In the [`net/http` Do method](https://pkg.go.dev/net/http#Client.Do),
if an error is returned, the http response should be ignored. Currently,
we defer closing the response body which leads to a nil pointer error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants