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 LoggingHandler reporting 0 response size. #207

Closed

Conversation

nrvalliere
Copy link

If you convert your ResponseWriter to an io.ReaderFrom and call ReadFrom to send the response then LoggingHandler reports the size as 0. The cause is a missing ReadFrom hook in responseLogger, similar to the issue fixed in #197.

Summary of Changes

  1. Add a ReadFrom hook in responseLogger that increments Size.

@stale
Copy link

stale bot commented Jun 4, 2021

This issue has been automatically marked as stale because it hasn't seen a recent update. It'll be automatically closed in a few days.

@stale stale bot added the stale label Jun 4, 2021
@stale stale bot closed this Jun 16, 2021
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.

1 participant