The Free Software Media System - Server Backend & API
fixed missing compression for dashboard js/css
Luke Pulverenti969bc00098f8
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.csindex 8e715e47cd..115114e3a9 100644--- a/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs+++ b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs@@ -381,6 +381,14 @@ namespace MediaBrowser.Server.Implementations.HttpServer}if (contentType.StartsWith("application/", StringComparison.OrdinalIgnoreCase)){+ if (string.Equals(contentType, "application/x-javascript", StringComparison.OrdinalIgnoreCase))+ {+ return true;+ }+ if (string.Equals(contentType, "application/xml", StringComparison.OrdinalIgnoreCase))+ {+ return true;+ }return false;}diff --git a/MediaBrowser.WebDashboard/Api/DashboardService.cs b/MediaBrowser.WebDashboard/Api/DashboardService.csindex 20c612be24..7061f8c7fb 100644--- a/MediaBrowser.WebDashboard/Api/DashboardService.cs+++ b/MediaBrowser.WebDashboard/Api/DashboardService.cs@@ -409,7 +409,7 @@ namespace MediaBrowser.WebDashboard.Apivar files = new[]{"http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css",- "thirdparty/jqm-icon-pack-3.0/font-awesome/jqm-icon-pack-3.0.0-fa.css",+ "thirdparty/jqm-icon-pack-3.0/font-awesome/jqm-icon-pack-3.0.0-fa.css" + versionString,"css/all.css" + versionString};