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