From 47005468752c3d981635cecce71d8c24c2d9df55 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 14 Feb 2016 23:46:51 -0500 Subject: update migration process --- .../HttpServer/HttpListenerHost.cs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs') 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); } -- cgit v1.2.3