aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/HttpServer
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-02-14 23:49:23 -0500
committerLuke <luke.pulverenti@gmail.com>2016-02-14 23:49:23 -0500
commitdd9f5270ea276e5bb3d1d99a53d866a2c3a66086 (patch)
tree1878a65d3bd6f40da69f8b1d5623f91c53aa51e4 /MediaBrowser.Server.Implementations/HttpServer
parent681ffa96b379a361d3bca6393d8167f82c94dddf (diff)
parentbfd53d0c43ce4ffc1fb585cab66dffdb07ab916b (diff)
Merge pull request #1465 from MediaBrowser/beta
Beta
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer')
-rw-r--r--MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs13
1 files changed, 4 insertions, 9 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs
index a11eb3aaa..e69ff367a 100644
--- a/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs
+++ b/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs
@@ -350,16 +350,11 @@ namespace MediaBrowser.Server.Implementations.HttpServer
if (!string.IsNullOrWhiteSpace(GlobalResponse))
{
- if (string.Equals(GetExtension(urlString), "html", StringComparison.OrdinalIgnoreCase))
- {
- httpRes.Write(GlobalResponse);
- httpRes.ContentType = "text/plain";
- }
- else
- {
- httpRes.StatusCode = 503;
- }
+ httpRes.StatusCode = 503;
+ httpRes.ContentType = "text/html";
+ httpRes.Write(GlobalResponse);
+ httpRes.Close();
return Task.FromResult(true);
}