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

Request data can be read only once #41

Open
knazarov opened this issue Feb 28, 2017 · 2 comments
Open

Request data can be read only once #41

knazarov opened this issue Feb 28, 2017 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@knazarov
Copy link
Contributor

If I call req:param() then req:json() will fail subsequently, because it won't be able to read the request body using req:read(), because req:read() is not reentrant.

Request body should be cached somewhere. At least if content-type is application/json

@knazarov knazarov added the bug Something isn't working label Feb 28, 2017
@kostja kostja added the good first issue Good for newcomers label Feb 10, 2018
@bigbes
Copy link
Contributor

bigbes commented Jun 18, 2018

:read_cached() is already implemented

@iDneprov
Copy link

iDneprov commented Nov 9, 2022

:read_cached() is already implemented

Please add :read_cached() to readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

6 participants