Use smaller chunks (see https://github.com/slimphp/Slim/issues/1836)
This commit is contained in:
parent
07b0ec9a99
commit
fca0ab6b49
1 changed files with 7 additions and 1 deletions
|
@ -17,7 +17,13 @@ require_once __DIR__.'/vendor/rudloff/smarty-plugin-noscheme/modifier.noscheme.p
|
||||||
use Alltube\VideoDownload;
|
use Alltube\VideoDownload;
|
||||||
use Alltube\Controller\FrontController;
|
use Alltube\Controller\FrontController;
|
||||||
|
|
||||||
$app = new \Slim\App();
|
$app = new \Slim\App(
|
||||||
|
array(
|
||||||
|
'settings'=>array(
|
||||||
|
'responseChunkSize'=>1024
|
||||||
|
)
|
||||||
|
)
|
||||||
|
);
|
||||||
$container = $app->getContainer();
|
$container = $app->getContainer();
|
||||||
$container['view'] = function ($c) {
|
$container['view'] = function ($c) {
|
||||||
$view = new \Slim\Views\Smarty(__DIR__.'/templates/');
|
$view = new \Slim\Views\Smarty(__DIR__.'/templates/');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue