From 9c372d7335486098893bc424586a3f8c635ee0ab Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Thu, 13 Oct 2022 14:32:06 +1300 Subject: [PATCH] Fix checking content type with postfixes --- src/Appwrite/GraphQL/Resolvers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/GraphQL/Resolvers.php b/src/Appwrite/GraphQL/Resolvers.php index 9b4d7c6a3e..bd98b147ad 100644 --- a/src/Appwrite/GraphQL/Resolvers.php +++ b/src/Appwrite/GraphQL/Resolvers.php @@ -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'); }