mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-18 03:30:55 +01:00
Merge pull request #92 from attiks/archivefilesize
nginx problem with zip/tar size
This commit is contained in:
@@ -28,7 +28,6 @@ $app->get('{repo}/{format}ball/{branch}', function($repo, $format, $branch) use
|
|||||||
'Content-Description' => 'File Transfer',
|
'Content-Description' => 'File Transfer',
|
||||||
'Content-Disposition' => 'attachment; filename="'.$repo.'-'.substr($tree, 0, 6).'.'.$format.'"',
|
'Content-Disposition' => 'attachment; filename="'.$repo.'-'.substr($tree, 0, 6).'.'.$format.'"',
|
||||||
'Content-Transfer-Encoding' => 'binary',
|
'Content-Transfer-Encoding' => 'binary',
|
||||||
'Content-Length' => filesize($file),
|
|
||||||
));
|
));
|
||||||
})->assert('format', '(zip|tar)')
|
})->assert('format', '(zip|tar)')
|
||||||
->assert('repo', '[\w-._]+')
|
->assert('repo', '[\w-._]+')
|
||||||
|
|||||||
Reference in New Issue
Block a user