User proper File constructor

This commit is contained in:
crobibero 2020-06-17 10:51:50 -06:00
parent 3c18745f53
commit 9b45ee440c

View File

@ -191,7 +191,7 @@ namespace Jellyfin.Api.Controllers.Images
}
var contentType = MimeTypes.GetMimeType(contentPath);
return new FileStreamResult(System.IO.File.OpenRead(contentPath), contentType);
return File(System.IO.File.OpenRead(contentPath), contentType);
}
/// <summary>