We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7310b25 + dca2091 commit ccecc3cCopy full SHA for ccecc3c
src/Server/Helper.php
@@ -482,9 +482,9 @@ public function parsePsrRequest(ServerRequestInterface $request)
482
throw new RequestError('Missing "Content-Type" header');
483
}
484
485
- if (stripos('application/graphql', $contentType[0]) !== false) {
+ if (stripos($contentType[0], 'application/graphql') !== false) {
486
$bodyParams = ['query' => $request->getBody()->getContents()];
487
- } else if (stripos('application/json', $contentType[0]) !== false) {
+ } else if (stripos($contentType[0], 'application/json') !== false) {
488
$bodyParams = $request->getParsedBody();
489
490
if (null === $bodyParams) {
0 commit comments