We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To increase log-details I want to put into the log the data, that ShouldBind*() read from Request.Body before fail.
The text was updated successfully, but these errors were encountered:
Replace c.Request.Body with a wrapped one by io.TeeReader or so.
c.Request.Body
io.TeeReader
Or you should use c.ShouldBindBodyWith instead of c.ShouldBind*, and c.Get(gin.BodyBytesKey) to access the original body.
c.ShouldBindBodyWith
c.ShouldBind*
c.Get(gin.BodyBytesKey)
see #1341
Sorry, something went wrong.
@ramzec See the readme: https://github.com/gin-gonic/gin#model-binding-and-validation
No branches or pull requests
To increase log-details I want to put into the log the data, that ShouldBind*() read from Request.Body before fail.
The text was updated successfully, but these errors were encountered: