mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-29 08:07:59 +01:00
Fixed downloads
This commit is contained in:
parent
af25a14b34
commit
c59c51daa0
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@
|
||||||
ResourceLogItem::logItem('track', $id, ResourceLogItem::DOWNLOAD, $format['index']);
|
ResourceLogItem::logItem('track', $id, ResourceLogItem::DOWNLOAD, $format['index']);
|
||||||
|
|
||||||
$response = Response::make('', 200);
|
$response = Response::make('', 200);
|
||||||
$filename = $track->getFileFor($format);
|
$filename = $track->getFileFor($formatName);
|
||||||
|
|
||||||
if (Config::get('app.sendfile')) {
|
if (Config::get('app.sendfile')) {
|
||||||
$response->header('X-Sendfile', $filename);
|
$response->header('X-Sendfile', $filename);
|
||||||
|
|
Loading…
Reference in a new issue