diff --git a/src/PSR7Worker.php b/src/PSR7Worker.php index 65ff962..ab2c865 100644 --- a/src/PSR7Worker.php +++ b/src/PSR7Worker.php @@ -195,7 +195,7 @@ protected function mapRequest(Request $httpRequest, array $server): ServerReques $request = $request->withParsedBody($httpRequest->getParsedBody()); } - if ($httpRequest->body) { + if ($httpRequest->body !== '') { return $request->withBody($this->streamFactory->createStream($httpRequest->body)); }