diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-02-14 23:49:11 -0500 |
|---|---|---|
| committer | Luke <luke.pulverenti@gmail.com> | 2016-02-14 23:49:11 -0500 |
| commit | bfd53d0c43ce4ffc1fb585cab66dffdb07ab916b (patch) | |
| tree | 734887556dd2b5c74838b5d1fa2bb2d871c087b8 /MediaBrowser.Server.Implementations/HttpServer | |
| parent | 65e0cd7740ec15212ea8991d945bb6f4f605b34d (diff) | |
| parent | 47005468752c3d981635cecce71d8c24c2d9df55 (diff) | |
Merge pull request #1464 from MediaBrowser/dev
update migration process
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer')
| -rw-r--r-- | MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs | 13 |
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); } |
