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
Adding this to the middleware on my Gin server seems to make the request body become empty, and return EOF on read.
The text was updated successfully, but these errors were encountered:
I believe the defect is the wrapper trying to restore the body.
// Restore the request body for further processing c.Request.Body = io.NopCloser(bytes.NewReader(body))
This works, but the existing code which wraps the (now empty) c.Request.Body in the NopCloser fails to pass any content along.
c.Request.Body
NopCloser
Sorry, something went wrong.
hi @skandragon Thank you for raising the issue; I will check this problem soon.
Fix #1 middleware eats req body issue (#2)
d84d434
* - Fix req body restoring - Add unittests for calc the body size. * - Update CHANGELOG.md
hi @skandragon the bug should have be fixed in the version v1.0.1, thanks again for your contribution! v1.0.1
Successfully merging a pull request may close this issue.
Adding this to the middleware on my Gin server seems to make the request body become empty, and return EOF on read.
The text was updated successfully, but these errors were encountered: