aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs
diff options
context:
space:
mode:
authorEric Reed <ebr@mediabrowser3.com>2013-05-28 13:37:17 -0400
committerEric Reed <ebr@mediabrowser3.com>2013-05-28 13:37:17 -0400
commit316b2b80a36ee5a7032a0f9076818c2df4be60fa (patch)
treeaa67dc2fe78ebe5d5785da5065ed02a228e93016 /MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs
parent4268800589653e57f6130c66bf92a5a406e9cbf1 (diff)
parent9274f9f35f1269c147c6815bb85e196e3128374a (diff)
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs')
-rw-r--r--MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs8
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;
}