aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
diff options
context:
space:
mode:
authorEric Reed <ebr@mediabrowser3.com>2013-09-23 12:28:44 -0400
committerEric Reed <ebr@mediabrowser3.com>2013-09-23 12:28:44 -0400
commitc6e57c6448c04998bcae5a906e7a064300542e75 (patch)
tree548e46418f25b2dc65b78c1a96083c5ca2b9c81a /MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
parentd9fecd78a54453a7656f649a6fcfc654f74dbdf6 (diff)
parentcacba5ca11d600ed9d496c566807be92b228de7e (diff)
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs')
-rw-r--r--MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
index aa30cee26..f6547dec1 100644
--- a/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
+++ b/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
@@ -356,6 +356,12 @@ namespace MediaBrowser.Server.Implementations.HttpServer
try
{
ProcessRequest(context);
+
+ var url = context.Request.Url.ToString();
+ var endPoint = context.Request.RemoteEndPoint;
+
+ LogResponse(context, url, endPoint);
+
}
catch (Exception ex)
{
@@ -433,9 +439,6 @@ namespace MediaBrowser.Server.Implementations.HttpServer
var httpRes = new HttpListenerResponseWrapper(context.Response);
var handler = ServiceStackHttpHandlerFactory.GetHandler(httpReq);
- var url = context.Request.Url.ToString();
- var endPoint = context.Request.RemoteEndPoint;
-
var serviceStackHandler = handler as IServiceStackHttpHandler;
if (serviceStackHandler != null)
@@ -446,7 +449,6 @@ namespace MediaBrowser.Server.Implementations.HttpServer
httpReq.OperationName = operationName = restHandler.RestPath.RequestType.Name;
}
serviceStackHandler.ProcessRequest(httpReq, httpRes, operationName);
- LogResponse(context, url, endPoint);
return;
}