mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
parent
8d542e0923
commit
4d6258adeb
2 changed files with 2 additions and 2 deletions
|
@ -1350,7 +1350,7 @@ class CakeResponse {
|
|||
break;
|
||||
}
|
||||
if ($end && $offset + $bufferSize >= $end) {
|
||||
$bufferSize = $end - $offset;
|
||||
$bufferSize = $end - $offset + 1;
|
||||
}
|
||||
echo fread($file->handle, $bufferSize);
|
||||
if (!$compress) {
|
||||
|
|
|
@ -1437,7 +1437,7 @@ class CakeResponseTest extends CakeTestCase {
|
|||
$result = $response->send();
|
||||
$output = ob_get_clean();
|
||||
$this->assertEquals(206, $response->statusCode());
|
||||
$this->assertEquals("is the test asset", $output);
|
||||
$this->assertEquals("is the test asset ", $output);
|
||||
$this->assertTrue($result !== false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue