aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Minz/Request.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php
index 8121eb104..63464e8f1 100644
--- a/lib/Minz/Request.php
+++ b/lib/Minz/Request.php
@@ -440,7 +440,7 @@ class Minz_Request {
* Allows receiving POST data as application/json
*/
private static function initJSON(): void {
- if ('application/json' !== self::extractContentType()) {
+ if (!str_starts_with(self::extractContentType(), 'application/json')) {
return;
}
$ORIGINAL_INPUT = file_get_contents('php://input', false, null, 0, 1048576);