Skip to content

Commit

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

1 comment on commit 7e43639

@ulilae
Copy link

@ulilae ulilae commented on 7e43639 Jan 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Ralf,
würde mich freuen, wenn du dich mal meldest bei mir.
Liebe Grüße
Uli

Please sign in to comment.