Merge pull request #5621 from cvium/enable-range-processing-download

enable range processing for download endpoints
This commit is contained in:
Claus Vium 2021-03-25 17:01:18 +01:00 committed by GitHub
commit 411570e6d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ namespace Jellyfin.Api.Controllers
return NotFound();
}
return PhysicalFile(item.Path, MimeTypes.GetMimeType(item.Path));
return PhysicalFile(item.Path, MimeTypes.GetMimeType(item.Path), true);
}
/// <summary>
@ -666,7 +666,7 @@ namespace Jellyfin.Api.Controllers
}
// TODO determine non-ASCII validity.
return PhysicalFile(path, MimeTypes.GetMimeType(path), filename);
return PhysicalFile(path, MimeTypes.GetMimeType(path), filename, true);
}
/// <summary>