mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-30 19:54:14 -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",
|
".cbz" => "application/zip",
|
||||||
".cbr" => "application/vnd.rar",
|
".cbr" => "application/vnd.rar",
|
||||||
|
".cb7" => "application/x-compressed",
|
||||||
|
".epub" => "application/epub+zip",
|
||||||
|
".7z" => "application/x-7z-compressed",
|
||||||
|
".7zip" => "application/x-7z-compressed",
|
||||||
_ => contentType
|
_ => contentType
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user