Fix checking content type with postfixes
This commit is contained in:
parent
a2b532ed22
commit
9c372d7335
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ class Resolvers
|
|||
?callable $beforeReject = null,
|
||||
): void {
|
||||
// Drop json content type so post args are used directly
|
||||
if ($request->getHeader('content-type') === 'application/json') {
|
||||
if (\str_starts_with($request->getHeader('content-type'), 'application/json')) {
|
||||
$request->removeHeader('content-type');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue