diff --git a/src/Appwrite/GraphQL/Builder.php b/src/Appwrite/GraphQL/Builder.php index 433d28ae52..cbbac3bfed 100644 --- a/src/Appwrite/GraphQL/Builder.php +++ b/src/Appwrite/GraphQL/Builder.php @@ -498,7 +498,8 @@ class Builder $swooleRq = $request->getSwoole(); $swooleRq->post = $args; // Drop json content type so post args are used directly - if ($swooleRq->header['content-type'] === 'application/json') { + if (\array_key_exists('content-type', $swooleRq->header) + && $swooleRq->header['content-type'] === 'application/json') { unset($swooleRq->header['content-type']); } $request = new Request($swooleRq);