From bceac2ff261bf871f960a537260c4be01345dba8 Mon Sep 17 00:00:00 2001 From: Mark Linton Date: Sat, 31 Aug 2013 11:04:06 -0700 Subject: [PATCH] Add document mime types. --- MediaBrowser.Common/Net/MimeTypes.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/MediaBrowser.Common/Net/MimeTypes.cs b/MediaBrowser.Common/Net/MimeTypes.cs index 7bd01bf6d..8f44b1053 100644 --- a/MediaBrowser.Common/Net/MimeTypes.cs +++ b/MediaBrowser.Common/Net/MimeTypes.cs @@ -112,6 +112,20 @@ namespace MediaBrowser.Common.Net return "application/xml"; } + // Type document + if (ext.Equals(".pdf", StringComparison.OrdinalIgnoreCase)) + { + return "application/pdf"; + } + if (ext.Equals(".mobi", StringComparison.OrdinalIgnoreCase)) + { + return "application/x-mobipocket-ebook"; + } + if (ext.Equals(".epub", StringComparison.OrdinalIgnoreCase)) + { + return "application/epub+zip"; + } + // Type image if (ext.Equals(".gif", StringComparison.OrdinalIgnoreCase)) {