Apply review fixes

This commit is contained in:
crobibero 2020-07-30 06:29:06 -06:00
parent bb1fec9da1
commit f543a17d1b
2 changed files with 2 additions and 3 deletions

View File

@ -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,

View File

@ -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>