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

Adding fixes to a bug introduced with PR #16 #19

Merged
merged 4 commits into from
Sep 13, 2016
Merged

Adding fixes to a bug introduced with PR #16 #19

merged 4 commits into from
Sep 13, 2016

Conversation

jprobinson
Copy link
Contributor

PR #16 broke the middleware for users who call WriteHeader within their handlers before writing the response body.

This PR changes the tests to properly test http.ResponseWriter header and it also changes the logic from PR #16 to only allow empty responses if the status code is 204 or 304.

@jprobinson jprobinson merged commit 29d6389 into master Sep 13, 2016
@jprobinson jprobinson deleted the nobody branch September 13, 2016 22:23
@jprobinson jprobinson mentioned this pull request Sep 13, 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.

None yet

1 participant