aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-02-04 13:04:04 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-02-04 13:04:04 -0500
commitd28ef71d93ea7fe50343f82f575637307b4d74bf (patch)
tree23881a1472a311ca7ceca4e2d10df880baafa102 /MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs
parent7614707dad5aff2847d46105406828f01b3bbd85 (diff)
update db migration
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs')
-rw-r--r--MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs
index d91d80dbd..a11eb3aaa 100644
--- a/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs
+++ b/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs
@@ -241,7 +241,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
}
catch (Exception errorEx)
{
- _logger.ErrorException("Error this.ProcessRequest(context)(Exception while writing error to the response)", errorEx);
+ //_logger.ErrorException("Error this.ProcessRequest(context)(Exception while writing error to the response)", errorEx);
}
}
@@ -350,10 +350,12 @@ namespace MediaBrowser.Server.Implementations.HttpServer
if (!string.IsNullOrWhiteSpace(GlobalResponse))
{
- httpRes.Write(GlobalResponse);
- httpRes.ContentType = "text/plain";
-
- if (!string.Equals(GetExtension(urlString), "html", StringComparison.OrdinalIgnoreCase))
+ if (string.Equals(GetExtension(urlString), "html", StringComparison.OrdinalIgnoreCase))
+ {
+ httpRes.Write(GlobalResponse);
+ httpRes.ContentType = "text/plain";
+ }
+ else
{
httpRes.StatusCode = 503;
}