Apply suggestions from code review
Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
parent
dd3b48f203
commit
05e78ee78c
|
@ -427,9 +427,7 @@ namespace Jellyfin.Api.Controllers
|
|||
if (fontFile != null && fileSize != null && fileSize > 0)
|
||||
{
|
||||
_logger.LogDebug("Fallback font size is {FileSize} Bytes", fileSize);
|
||||
|
||||
FileStream stream = new FileStream(fontFile.FullName, FileMode.Open, FileAccess.Read);
|
||||
return File(stream, MimeTypes.GetMimeType(fontFile.FullName));
|
||||
return PhysicalFile(fontFile.FullName, MimeTypes.GetMimeType(fontFile.FullName));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user