Fix edge cases for request types

This commit is contained in:
Dennis Eichhorn 2018-09-15 17:12:19 +02:00
parent 2a01540348
commit 3e2c676530

View File

@ -146,7 +146,7 @@ final class Request extends RequestAbstract
return;
}
$json = \json_decode($input === false || empty($input) ? '' : $input, true);
$json = \json_decode($input, true);
if ($json === false || $json === null) {
throw new \Exception('Is not valid json ' . $input);
}