Skip to content

Commit

Permalink
Update fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FARRUGIA committed Jan 3, 2019
1 parent 7e6a738 commit 1bd7ef2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Slim/App.php
Expand Up @@ -453,7 +453,7 @@ public function respond(ResponseInterface $response)
$settings = $this->container->get('settings');
$chunkSize = $settings['responseChunkSize'];

$contentLength = (int)$response->getHeaderLine('Content-Length');
$contentLength = $response->getHeaderLine('Content-Length');
if (!$contentLength) {
$contentLength = $body->getSize();
}
Expand All @@ -473,7 +473,7 @@ public function respond(ResponseInterface $response)
}
} else {
while (!$body->eof()) {
echo $body->read($chunkSize);
echo $body->read((int)$chunkSize);
if (connection_status() != CONNECTION_NORMAL) {
break;
}
Expand Down

0 comments on commit 1bd7ef2

Please sign in to comment.