mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-22 04:46:04 +03:00
11c9429fab
Because PSR-7 specification only specify that `getParsedBody()` **may** return the parsed body for `application/json`, we cannot assume that it is always the case. So if the value returned parsed body is an empty array, it means we should try to parse it ourselves (`null` would mean no body at all according to spec). With this modification we try to used given parsed body, but fallback on trying to parse the body if necessary. This leave the door open to custom implementation of parsing if needed, while making it easier to use out of the box. |
||
---|---|---|
.. | ||
Psr7 | ||
PsrResponseTest.php | ||
QueryExecutionTest.php | ||
RequestParsingTest.php | ||
RequestValidationTest.php | ||
ServerConfigTest.php | ||
StandardServerTest.php | ||
TestCase.php |