diff --git a/framework/core/src/Api/Middleware/ReadJsonParameters.php b/framework/core/src/Api/Middleware/ReadJsonParameters.php index 6395d805d..ab1b7b950 100644 --- a/framework/core/src/Api/Middleware/ReadJsonParameters.php +++ b/framework/core/src/Api/Middleware/ReadJsonParameters.php @@ -11,7 +11,7 @@ class ReadJsonParameters implements MiddlewareInterface */ public function __invoke(Request $request, Response $response, callable $out = null) { - if (str_contains($request->getHeaderLine('content-type'), 'application/vnd.api+json')) { + if (str_contains($request->getHeaderLine('content-type'), 'json')) { $input = json_decode($request->getBody(), true); foreach ($input as $name => $value) {