From 2ce2c877e9cd2342482501cc15d79440670ebb4d Mon Sep 17 00:00:00 2001 From: Ralf Engelmann Date: Thu, 2 Sep 2021 09:29:28 +0200 Subject: [PATCH] fix zero request body spiral/roadrunner-http#5 --- src/PSR7Worker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }