From fca0ab6b49fd4c93be060432675f1dcfee30ac1d Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Fri, 8 Apr 2016 22:58:42 +0200 Subject: [PATCH] Use smaller chunks (see https://github.com/slimphp/Slim/issues/1836) --- index.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index de9387b..b7230d9 100644 --- a/index.php +++ b/index.php @@ -17,7 +17,13 @@ require_once __DIR__.'/vendor/rudloff/smarty-plugin-noscheme/modifier.noscheme.p use Alltube\VideoDownload; use Alltube\Controller\FrontController; -$app = new \Slim\App(); +$app = new \Slim\App( + array( + 'settings'=>array( + 'responseChunkSize'=>1024 + ) + ) +); $container = $app->getContainer(); $container['view'] = function ($c) { $view = new \Slim\Views\Smarty(__DIR__.'/templates/');