Skip to content

Commit 95f5fd3

Browse files
committed
MC-38008: Incorrect query.
1 parent 5dd64da commit 95f5fd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/GraphQl/Controller/HttpRequestValidator/HttpVerbValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function validate(HttpRequestInterface $request) : void
3030
if (false === $request->isPost()) {
3131
$query = $request->getParam('query', '');
3232
// The easiest way to determine mutations without additional parsing
33-
if (strpos(trim($query), 'mutation') === 0) {
33+
if (strpos(trim($query), 'mutation') !== false) {
3434
throw new GraphQlInputException(
3535
new \Magento\Framework\Phrase('Mutation requests allowed only for POST requests')
3636
);

0 commit comments

Comments
 (0)