feat: Use ZIP files for playlist archives

It is more widely supported and could be later used for #194
This commit is contained in:
Pierre Rudloff 2019-04-21 22:34:45 +02:00
parent 226f1b8380
commit e93ab7ed13
3 changed files with 6 additions and 6 deletions

View file

@ -380,10 +380,10 @@ class FrontController
{
if (isset($this->video->entries)) {
$stream = new PlaylistArchiveStream($this->video);
$response = $response->withHeader('Content-Type', 'application/x-tar');
$response = $response->withHeader('Content-Type', 'application/zip');
$response = $response->withHeader(
'Content-Disposition',
'attachment; filename="'.$this->video->title.'.tar"'
'attachment; filename="'.$this->video->title.'.zip"'
);
return $response->withBody($stream);