Open log files in browser again

Fixes #485

Looks like we regressed and now only the .txt logs would open in the browser when clicked. 

Added in MimeType handler for .log files. Problem solved.
This commit is contained in:
Sparky 2019-01-07 11:19:46 -05:00
parent c986340c02
commit 1f5b9a04fb

View File

@ -183,6 +183,10 @@ namespace MediaBrowser.Model.Net
{
return "text/plain";
}
if (StringHelper.EqualsIgnoreCase(ext, ".log"))
{
return "text/plain";
}
if (StringHelper.EqualsIgnoreCase(ext, ".xml"))
{
return "application/xml";