Skip to content

Commit

Permalink
Fix checking for empty string in parsed body #24 from roadrunner-php/…
Browse files Browse the repository at this point in the history
…bugfix/fix-comparison

Fix checking for empty string in parsed body
  • Loading branch information
msmakouz committed Apr 1, 2024
2 parents 2963562 + 37de18b commit e824157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HttpWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ private function requestFromProto(string $body, RequestProto $message): Request
$this->headerValueToArray($message->getAttributes()),
),
query: $query,
body: $message->getParsed() && empty($body) ? '{}' : $body,
body: $message->getParsed() && $body === '' ? '{}' : $body,
parsed: $message->getParsed(),
);
}
Expand Down

0 comments on commit e824157

Please sign in to comment.