-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
ServerRequest::getParsedBody always returns empty array #100
Comments
That sounds wrong. I would expect it to return |
How do you create the server request? Could you give us 10-20 lines of example code? |
I am using the example code from https://github.com/Nyholm/psr7-server/blob/master/README.md. |
Nyholm/psr7-server always puts PHP’s There are a number of middleware available that will parse other types of request content, e.g. Zend includes a JSON parser in their Expressive Helpers. |
After checking the request, I found out that the request doesn't include |
I am trying to get the request's parsed body using
ServerRequest::getParsedBody
method, but it always returns an empty array. I've checked the code and do not find the code related to parsing request's body.Is this the intended behaviour?
The text was updated successfully, but these errors were encountered: