refactor(FrontController): We don't need to set the filename twice
This commit is contained in:
parent
5463aea2ae
commit
5b7b101a8a
1 changed files with 5 additions and 5 deletions
|
@ -473,15 +473,15 @@ class FrontController
|
|||
}
|
||||
$webpageUrl = $request->getQueryParam('url');
|
||||
|
||||
return $response->withHeader('Content-Disposition', 'attachment; filename="'.pathinfo(
|
||||
$this->download->getFileNameWithExtension(
|
||||
return $response->withHeader(
|
||||
'Content-Disposition',
|
||||
'attachment; filename="'.$this->download->getFileNameWithExtension(
|
||||
'mkv',
|
||||
$webpageUrl,
|
||||
$format,
|
||||
$this->sessionSegment->getFlash($webpageUrl)
|
||||
),
|
||||
PATHINFO_FILENAME
|
||||
).'.mkv"');
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue