Single Download Failed on Epubs (#319)

* Fixed a missed case where downloading a single file that is an epub (or cb7, zip, 7z) file would cause a critical error and the download would fail without any information.
This commit is contained in:
Joseph Milazzo 2021-06-20 16:07:18 -05:00 committed by GitHub
parent 8f4d42d13f
commit b25335acbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,6 +81,10 @@ namespace API.Controllers
{
".cbz" => "application/zip",
".cbr" => "application/vnd.rar",
".cb7" => "application/x-compressed",
".epub" => "application/epub+zip",
".7z" => "application/x-7z-compressed",
".7zip" => "application/x-7z-compressed",
_ => contentType
};
}