-
Notifications
You must be signed in to change notification settings - Fork 416
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
contrib/internal/httputil: return correct wrapped response writer #1078
contrib/internal/httputil: return correct wrapped response writer #1078
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit about import order for the linter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing :-)
I just added the test that was missing and would have caught the issue you fix here.
The patch you propose is actually incorrect: trace_gen.go
is a generated file and you should instead fix make_responsewriter.go
and then run go run ./make_responsewriter.go > trace_gen.go
to fix trace_gen.go
.
Thank you :-)
Updated the file that generates the code, tested and it seems to be working fine! |
We should return the wrapped response writer and NOT the original one.
In response to this issue.