update migration process

This commit is contained in:
Luke Pulverenti
2016-02-14 23:46:51 -05:00
parent 1551ae6566
commit 4700546875
3 changed files with 14 additions and 13 deletions

View File

@@ -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);
}