-
Notifications
You must be signed in to change notification settings - Fork 3
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
Request Body Logging failed #28
Comments
I believe it was an issue in early releases. Could you provide some code examples? |
Always get an empty body
|
first mistake second, I always have to capture the body before the
last but not least, that do not capture the response body from from the |
after some debuging, found that the ReadFrom method, do not capture the body, since it write to rw.ResponseWriter not to the own Writer. so the body will not captured.
|
Logging request body doesn't work for me because the body was already read at the time of logging.
So the body should be read before other handlers can read it.
like:
The text was updated successfully, but these errors were encountered: