refactor(FrontController): We don't need to set the filename twice

This commit is contained in:
Pierre Rudloff 2018-12-28 20:01:46 +01:00
parent 5463aea2ae
commit 5b7b101a8a

View file

@ -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"');
} }
/** /**