1
0
Fork 0
mirror of synced 2024-09-30 01:08:13 +13:00

Fix checking content type with postfixes

This commit is contained in:
Jake Barnby 2022-10-13 14:32:06 +13:00
parent a2b532ed22
commit 9c372d7335
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -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');
}