mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-29 00:25:17 +03:00
Merge pull request #13 from MPV/patch-1
Added semicolon to HTTP endpoint example.
This commit is contained in:
commit
68365e29e7
@ -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