You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation for Do()[1] says:
"When err is nil, resp always contains a non-nil resp.Body."
But it doesn't specify the behaviour if error is non-nil:
Do I need to close the Body if err is NOT nil?
---
[1] https://godoc.org/net/http#Client.Do