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