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

Avoid duplicate Close() call on http.Response.Body #365

Merged
merged 2 commits into from Sep 8, 2022

Conversation

Integralist
Copy link
Collaborator

When fixing #362 I neglected to notice that the decodeBodyMap function was already calling .Close() on the provided http.Response.Body.

Copy link
Member

@joeshaw joeshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

fastly/client.go Outdated Show resolved Hide resolved
@joeshaw
Copy link
Member

joeshaw commented Sep 8, 2022

Sorry, got ahead of myself approving before I noticed the comment needed updating.

fastly/client.go Outdated Show resolved Hide resolved
Copy link
Member

@joeshaw joeshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 for real now

@Integralist Integralist merged commit 0b925cc into main Sep 8, 2022
@Integralist Integralist deleted the integralist/remove-close-from-fn branch September 8, 2022 13:29
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.

None yet

2 participants