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');
|
$webpageUrl = $request->getQueryParam('url');
|
||||||
|
|
||||||
return $response->withHeader('Content-Disposition', 'attachment; filename="'.pathinfo(
|
return $response->withHeader(
|
||||||
$this->download->getFileNameWithExtension(
|
'Content-Disposition',
|
||||||
|
'attachment; filename="'.$this->download->getFileNameWithExtension(
|
||||||
'mkv',
|
'mkv',
|
||||||
$webpageUrl,
|
$webpageUrl,
|
||||||
$format,
|
$format,
|
||||||
$this->sessionSegment->getFlash($webpageUrl)
|
$this->sessionSegment->getFlash($webpageUrl)
|
||||||
),
|
)
|
||||||
PATHINFO_FILENAME
|
);
|
||||||
).'.mkv"');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue