aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/HttpServer
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:22:57 -0500
commit94c70af4ad44bc0b0f507cea79dc1d97db66855c (patch)
tree89ae980049673259dd1c3f40c6b0185eb6e963de /MediaBrowser.Server.Implementations/HttpServer
parente5f80aebd0e3d769ce5d7fa901b7222a27c5832e (diff)
update db migration
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer')
-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;
}