Simplify code

This commit is contained in:
Pierre Rudloff 2022-02-03 20:21:04 +01:00
parent 781b5c8bc2
commit d46563f994
2 changed files with 3 additions and 4 deletions

View file

@ -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;
} }
/** /**

View file

@ -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();