From b25335acbdda8862f40b5a1e6fc4a57a0ee25d71 Mon Sep 17 00:00:00 2001 From: Joseph Milazzo Date: Sun, 20 Jun 2021 16:07:18 -0500 Subject: [PATCH] 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. --- API/Controllers/DownloadController.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/API/Controllers/DownloadController.cs b/API/Controllers/DownloadController.cs index f0a006120..6e7408fa4 100644 --- a/API/Controllers/DownloadController.cs +++ b/API/Controllers/DownloadController.cs @@ -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 }; }