mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 04:58:01 +01:00
Merged development into master
This commit is contained in:
commit
65a2fe567e
1 changed files with 2 additions and 1 deletions
|
@ -113,11 +113,12 @@
|
|||
|
||||
if (Config::get('app.sendfile')) {
|
||||
$response->header('X-Sendfile', $track->getFileFor('MP3'));
|
||||
$response->header('Content-Disposition', 'attachment; filename="' . $track->getDownloadFilenameFor($formatName) . '"');
|
||||
} else {
|
||||
$response->header('X-Accel-Redirect', $track->getFileFor('MP3'));
|
||||
$response->header('Content-Disposition', 'attachment; filename=' . $track->getDownloadFilenameFor($formatName));
|
||||
}
|
||||
|
||||
$response->header('Content-Disposition', 'attachment; filename="' . $track->getDownloadFilenameFor($formatName) . '"');
|
||||
$response->header('Content-Type', $format['mime_type']);
|
||||
|
||||
return $response;
|
||||
|
|
Loading…
Reference in a new issue