diff --git a/classes/Controller/DownloadController.php b/classes/Controller/DownloadController.php index 78e8b77..50a1110 100644 --- a/classes/Controller/DownloadController.php +++ b/classes/Controller/DownloadController.php @@ -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; } /** diff --git a/classes/Robo/Plugin/Commands/ReleaseCommand.php b/classes/Robo/Plugin/Commands/ReleaseCommand.php index 0edd71d..52f2b6d 100644 --- a/classes/Robo/Plugin/Commands/ReleaseCommand.php +++ b/classes/Robo/Plugin/Commands/ReleaseCommand.php @@ -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();