Fix photo viewer

This commit is contained in:
David 2020-08-05 21:19:38 +02:00
parent 3e974c0351
commit 8bb9909660

View File

@ -666,8 +666,7 @@ namespace Jellyfin.Api.Controllers
}
// TODO determine non-ASCII validity.
using var fileStream = new FileStream(path, FileMode.Open, FileAccess.Read);
return File(fileStream, MimeTypes.GetMimeType(path), filename);
return PhysicalFile(path, MimeTypes.GetMimeType(path));
}
/// <summary>