This commit is contained in:
Luke Pulverenti 2013-08-31 15:48:16 -04:00
commit 0320f15e96

View File

@ -112,6 +112,24 @@ 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";
}
if (ext.Equals(".cbz", StringComparison.OrdinalIgnoreCase) || ext.Equals(".cbr", StringComparison.OrdinalIgnoreCase))
{
return "application/x-cdisplay";
}
// Type image
if (ext.Equals(".gif", StringComparison.OrdinalIgnoreCase))
{