Skip to content

Commit e824157

Browse files
authored
Fix checking for empty string in parsed body #24 from roadrunner-php/bugfix/fix-comparison
Fix checking for empty string in parsed body
2 parents 2963562 + 37de18b commit e824157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HttpWorker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ private function requestFromProto(string $body, RequestProto $message): Request
198198
$this->headerValueToArray($message->getAttributes()),
199199
),
200200
query: $query,
201-
body: $message->getParsed() && empty($body) ? '{}' : $body,
201+
body: $message->getParsed() && $body === '' ? '{}' : $body,
202202
parsed: $message->getParsed(),
203203
);
204204
}

0 commit comments

Comments
 (0)