Simplify code
This commit is contained in:
parent
781b5c8bc2
commit
d46563f994
2 changed files with 3 additions and 4 deletions
|
@ -222,13 +222,12 @@ class DownloadController extends BaseController
|
||||||
if ($request->isGet()) {
|
if ($request->isGet()) {
|
||||||
$response = $response->withBody($body);
|
$response = $response->withBody($body);
|
||||||
}
|
}
|
||||||
$response = $response->withHeader(
|
|
||||||
|
return $response->withHeader(
|
||||||
'Content-Disposition',
|
'Content-Disposition',
|
||||||
'attachment; filename="' .
|
'attachment; filename="' .
|
||||||
$this->video->getFilename() . '"'
|
$this->video->getFilename() . '"'
|
||||||
);
|
);
|
||||||
|
|
||||||
return $response;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -31,7 +31,7 @@ class ReleaseCommand extends Tasks
|
||||||
|
|
||||||
$tmpDir = $this->_tmpDir();
|
$tmpDir = $this->_tmpDir();
|
||||||
|
|
||||||
$filename = 'alltube-' . trim((string)$result->getMessage()) . '.zip';
|
$filename = 'alltube-' . trim($result->getMessage()) . '.zip';
|
||||||
|
|
||||||
/** @var FilesystemStack $rmTask */
|
/** @var FilesystemStack $rmTask */
|
||||||
$rmTask = $this->taskFilesystemStack();
|
$rmTask = $this->taskFilesystemStack();
|
||||||
|
|
Loading…
Reference in a new issue