Skip to content

The Free Software Media System - Server Backend & API

fixed http response logging

Luke Pulverentic07596dbb467
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
index 4f795fdd5f..2ef9bed9fc 100644
--- a/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
+++ b/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
@@ -357,11 +357,11 @@ namespace MediaBrowser.Server.Implementations.HttpServer
{
try
{
- ProcessRequest(context);
-
var url = context.Request.Url.ToString();
var endPoint = context.Request.RemoteEndPoint;
+ ProcessRequest(context);
+
var duration = DateTime.Now - date;
LogResponse(context, url, endPoint, duration);