nginx problem with zip/tar size

This commit is contained in:
Peter Droogmans
2012-07-14 21:47:10 +02:00
parent a572b6be37
commit fdeeac0c2f

View File

@@ -28,7 +28,6 @@ $app->get('{repo}/{format}ball/{branch}', function($repo, $format, $branch) use
'Content-Description' => 'File Transfer',
'Content-Disposition' => 'attachment; filename="'.$repo.'-'.substr($tree, 0, 6).'.'.$format.'"',
'Content-Transfer-Encoding' => 'binary',
'Content-Length' => filesize($file),
));
})->assert('format', '(zip|tar)')
->assert('repo', '[\w-._]+')