diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-28 13:32:40 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-28 13:32:40 -0400 |
| commit | 969bc00098f8069862d5049c296b905826868ada (patch) | |
| tree | 4894f43d7aed2856ed6592b70849abe0a66db8ba /MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs | |
| parent | 405e38280b129a88efcaaa870eb9c4716c090694 (diff) | |
fixed missing compression for dashboard js/css
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs | 8 |
1 files changed, 8 insertions, 0 deletions
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; } |
