Explorar o código

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.
Sparky %!s(int64=6) %!d(string=hai) anos
pai
achega
1f5b9a04fb
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      MediaBrowser.Model/Net/MimeTypes.cs

+ 4 - 0
MediaBrowser.Model/Net/MimeTypes.cs

@@ -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";