Apply review fixes
This commit is contained in:
parent
bb1fec9da1
commit
f543a17d1b
|
@ -373,7 +373,7 @@ namespace Jellyfin.Api.Controllers
|
|||
{
|
||||
var isHeadRequest = Request.Method == System.Net.WebRequestMethods.Http.Head;
|
||||
var cancellationTokenSource = new CancellationTokenSource();
|
||||
var streamingRequest = new StreamingRequestDto
|
||||
var streamingRequest = new VideoRequestDto
|
||||
{
|
||||
Id = itemId,
|
||||
Container = container,
|
||||
|
|
|
@ -71,8 +71,7 @@ namespace Jellyfin.Api.Helpers
|
|||
return controller.NoContent();
|
||||
}
|
||||
|
||||
using var stream = new FileStream(path, FileMode.Open, FileAccess.Read);
|
||||
return controller.File(stream, contentType);
|
||||
return controller.PhysicalFile(path, contentType);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue
Block a user