Fixed downloads

This commit is contained in:
nelsonlaquet 2013-09-02 04:17:58 -05:00
parent af25a14b34
commit c59c51daa0

View file

@ -131,7 +131,7 @@
ResourceLogItem::logItem('track', $id, ResourceLogItem::DOWNLOAD, $format['index']);
$response = Response::make('', 200);
$filename = $track->getFileFor($format);
$filename = $track->getFileFor($formatName);
if (Config::get('app.sendfile')) {
$response->header('X-Sendfile', $filename);