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

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>