Merge pull request #13 from MPV/patch-1

Added semicolon to HTTP endpoint example.
This commit is contained in:
Vladimir Razuvaev 2015-12-03 14:38:35 +06:00
commit 68365e29e7

View File

@ -432,7 +432,7 @@ use GraphQL\GraphQL;
use \Exception; use \Exception;
if (isset($_SERVER['CONTENT_TYPE']) && $_SERVER['CONTENT_TYPE'] === 'application/json') { 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); $data = json_decode($rawBody ?: '', true);
} else { } else {
$data = $_POST; $data = $_POST;