Skip to content

Commit

Permalink
refactor(FrontController): We don't need to set the filename twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudloff committed Dec 28, 2018
1 parent 5463aea commit 5b7b101
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions controllers/FrontController.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,15 +473,15 @@ private function getRemuxStream(array $urls, $format, Response $response, Reques
}
$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"');
)
);
}

/**
Expand Down

0 comments on commit 5b7b101

Please sign in to comment.