From 969bc00098f8069862d5049c296b905826868ada Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 28 May 2013 13:32:40 -0400 Subject: fixed missing compression for dashboard js/css --- .../HttpServer/HttpResultFactory.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'MediaBrowser.Server.Implementations/HttpServer') diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs index 8e715e47c..115114e3a 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; } -- cgit v1.2.3