More Bugfixes (#2989)
This commit is contained in:
parent
1ae723b405
commit
a3e020fe17
49 changed files with 579 additions and 272 deletions
|
|
@ -35,6 +35,12 @@ public class DownloadService : IDownloadService
|
|||
// Figures out what the content type should be based on the file name.
|
||||
if (!_fileTypeProvider.TryGetContentType(filepath, out var contentType))
|
||||
{
|
||||
if (contentType == null)
|
||||
{
|
||||
// Get extension
|
||||
contentType = Path.GetExtension(filepath);
|
||||
}
|
||||
|
||||
contentType = Path.GetExtension(filepath).ToLowerInvariant() switch
|
||||
{
|
||||
".cbz" => "application/x-cbz",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue