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

Remove Unnecessary Body Close #183

Closed
marwan-at-work opened this issue Feb 8, 2019 · 0 comments
Closed

Remove Unnecessary Body Close #183

marwan-at-work opened this issue Feb 8, 2019 · 0 comments

Comments

@marwan-at-work
Copy link
Contributor

According to net/http documentation, the server never needs to close a body request, see
https://golang.org/src/net/http/request.go?s=5615:5823#L96

So this whole defer statement is unnecessary: https://github.com/NYTimes/gizmo/blob/master/server/simple_server.go#L107:L113

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

No branches or pull requests

1 participant