diff --git a/src/Server/Helper.php b/src/Server/Helper.php index 8cc13f0..5844641 100644 --- a/src/Server/Helper.php +++ b/src/Server/Helper.php @@ -482,9 +482,9 @@ class Helper throw new RequestError('Missing "Content-Type" header'); } - if (stripos('application/graphql', $contentType[0]) !== false) { + if (stripos($contentType[0], 'application/graphql') !== false) { $bodyParams = ['query' => $request->getBody()->getContents()]; - } else if (stripos('application/json', $contentType[0]) !== false) { + } else if (stripos($contentType[0], 'application/json') !== false) { $bodyParams = $request->getParsedBody(); if (null === $bodyParams) {