Skip to content

Commit

Permalink
Compare content-length to the length of the request body (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenfrank authored May 8, 2024
1 parent 78056b1 commit d5783a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Servers/Reverb/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static function from(string $message, Connection $connection, int $maxReq
return $request;
}

if ($connection->bufferLength() < $contentLength[0] ?? 0) {
if ($request->getBody()->getSize() < $contentLength[0] ?? 0) {
return null;
}

Expand Down

0 comments on commit d5783a3

Please sign in to comment.