mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 04:58:01 +01:00
Fixed
This commit is contained in:
parent
aea643d9ba
commit
34aaa881d8
1 changed files with 3 additions and 3 deletions
|
@ -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']);
|
||||
|
||||
|
|
Loading…
Reference in a new issue