Skip to content

Commit

Permalink
Merge pull request #6 from rafelangelo/master
Browse files Browse the repository at this point in the history
Fix for spiral/roadrunner-http#5
  • Loading branch information
SerafimArts authored Sep 2, 2021
2 parents 4130858 + 7e43639 commit 62f9784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PSR7Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 62f9784

Please sign in to comment.