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

enable range processing for download endpoints
pull/5634/head
Claus Vium 4 years ago committed by GitHub
commit 411570e6d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save