diff --git a/src/ServerRequest.php b/src/ServerRequest.php index 3105355..fd6e07f 100644 --- a/src/ServerRequest.php +++ b/src/ServerRequest.php @@ -162,13 +162,13 @@ public function getParsedBody() { $parsedBody = $this->serverRequest->getParsedBody(); - if ($parsedBody !== null) { + if (!empty($parsedBody)) { return $parsedBody; } $mediaType = $this->getMediaType(); if ($mediaType === null) { - return null; + return $parsedBody; } // Check if this specific media type has a parser registered first