Skip to content

Commit

Permalink
fix zero request body
Browse files Browse the repository at this point in the history
spiral/roadrunner-http#5
  • Loading branch information
rafelangelo authored Sep 2, 2021
1 parent 4130858 commit 2ce2c87
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 2ce2c87

Please sign in to comment.