This commit is contained in:
nelsonlaquet 2013-09-01 03:07:59 -05:00
parent aea643d9ba
commit 34aaa881d8

View file

@ -76,7 +76,7 @@
$response = Response::make('', 200);
if (App::config('app.sendfile')) {
if (Config::get('app.sendfile')) {
$response->header('X-Sendfile', $track->getFileFor('MP3'));
} else {
$response->header('X-Accel-Redirect', $track->getFileFor('MP3'));
@ -111,12 +111,12 @@
$response = Response::make('', 200);
if (App::config('app.sendfile')) {
if (Config::get('app.sendfile')) {
$response->header('X-Sendfile', $track->getFileFor('MP3'));
} else {
$response->header('X-Accel-Redirect', $track->getFileFor('MP3'));
}
$response->header('Content-Disposition', 'attachment; filename="' . $track->getDownloadFilenameFor($formatName) . '"');
$response->header('Content-Type', $format['mime_type']);