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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue