mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-24 00:52:23 -04:00
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:
parent
8f4d42d13f
commit
b25335acbd
@ -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
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user