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()) {
|
||||
$response = $response->withBody($body);
|
||||
}
|
||||
$response = $response->withHeader(
|
||||
|
||||
return $response->withHeader(
|
||||
'Content-Disposition',
|
||||
'attachment; filename="' .
|
||||
$this->video->getFilename() . '"'
|
||||
);
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -31,7 +31,7 @@ class ReleaseCommand extends Tasks
|
|||
|
||||
$tmpDir = $this->_tmpDir();
|
||||
|
||||
$filename = 'alltube-' . trim((string)$result->getMessage()) . '.zip';
|
||||
$filename = 'alltube-' . trim($result->getMessage()) . '.zip';
|
||||
|
||||
/** @var FilesystemStack $rmTask */
|
||||
$rmTask = $this->taskFilesystemStack();
|
||||
|
|
Loading…
Reference in a new issue