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: mutil.fancyWriter.ReadFrom records number of bytes written #256

Merged
merged 1 commit into from
Apr 22, 2021

Conversation

jackc
Copy link
Contributor

@jackc jackc commented Aug 16, 2020

Without this hlog.AccessHnalder reports a size written of 0 when the
ReadFrom method is used. This is easily visible when using
http.FileServer where all files are served with a logged size of 0.

Without this hlog.AccessHnalder reports a size written of 0 when the
ReadFrom method is used. This is easily visible when using
http.FileServer where all files are served with a logged size of 0.
@ptr-n
Copy link

ptr-n commented Apr 22, 2021

Just ran into this bug using hlog.AccessHandler as well.
Could this be merged? (fix looks good and correct to me).
Thanks!

@rs rs merged commit 0f923d7 into rs:master Apr 22, 2021
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

3 participants