We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
application/json
1 parent 8949942 commit c1d3484Copy full SHA for c1d3484
ProcessGraphQL.module
@@ -138,7 +138,7 @@ class ProcessGraphQL extends Process implements Module {
138
// instantiating Processor and setting the schema
139
$processor = new Processor(new Schema());
140
141
- if (isset($_SERVER['CONTENT_TYPE']) && $_SERVER['CONTENT_TYPE'] === 'application/json') {
+ if (isset($_SERVER['CONTENT_TYPE']) && strpos($_SERVER['CONTENT_TYPE'], 'application/json') !== false) {
142
$rawBody = file_get_contents('php://input');
143
$requestData = json_decode($rawBody ?: '', true);
144
} else {
0 commit comments