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 #15 close the body on success #16

Merged
merged 1 commit into from
Sep 6, 2016

Conversation

erikdubbelboer
Copy link
Collaborator

Also, we never have to close the body on error. From the http.Do docs:

On error, any Response can be ignored. A non-nil Response with a
non-nil error only occurs when CheckRedirect fails, and even then
the returned Response.Body is already closed.

Also, we never have to close the body on error. From the http.Do docs:

    On error, any Response can be ignored. A non-nil Response with a
    non-nil error only occurs when CheckRedirect fails, and even then
    the returned Response.Body is already closed.
@erikdubbelboer erikdubbelboer merged commit ff6d159 into cjoudrey:master Sep 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant