mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-07 04:58:40 +00:00
Fix edge cases for request types
This commit is contained in:
parent
2a01540348
commit
3e2c676530
|
|
@ -146,7 +146,7 @@ final class Request extends RequestAbstract
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$json = \json_decode($input === false || empty($input) ? '' : $input, true);
|
$json = \json_decode($input, true);
|
||||||
if ($json === false || $json === null) {
|
if ($json === false || $json === null) {
|
||||||
throw new \Exception('Is not valid json ' . $input);
|
throw new \Exception('Is not valid json ' . $input);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user