Skip to content

Commit

Permalink
Merge branch 'psr7-body-read-int' into 3.x
Browse files Browse the repository at this point in the history
Closes #2543
  • Loading branch information
akrabat committed Nov 27, 2018
2 parents 62a1434 + 52f23a9 commit a5a2da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slim/App.php
Expand Up @@ -462,7 +462,7 @@ public function respond(ResponseInterface $response)
if (isset($contentLength)) {
$amountToRead = $contentLength;
while ($amountToRead > 0 && !$body->eof()) {
$data = $body->read(min($chunkSize, $amountToRead));
$data = $body->read(min((int)$chunkSize, (int)$amountToRead));
echo $data;

$amountToRead -= strlen($data);
Expand Down

0 comments on commit a5a2da9

Please sign in to comment.