mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-21 20:36:05 +03:00
Added semicolon to HTTP endpoint example.
This commit is contained in:
parent
68fb4ceb9c
commit
d24a8fa281
@ -432,7 +432,7 @@ use GraphQL\GraphQL;
|
||||
use \Exception;
|
||||
|
||||
if (isset($_SERVER['CONTENT_TYPE']) && $_SERVER['CONTENT_TYPE'] === 'application/json') {
|
||||
$rawBody = file_get_contents('php://input')
|
||||
$rawBody = file_get_contents('php://input');
|
||||
$data = json_decode($rawBody ?: '', true);
|
||||
} else {
|
||||
$data = $_POST;
|
||||
|
Loading…
Reference in New Issue
Block a user