aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-23 10:26:20 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-23 10:26:20 -0400
commit28e788e43517fd304baf4c1e8f754a38afe64624 (patch)
treeefac2b899e6089b063a3a04544d20c67cfddb506 /MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
parentb54240f6798d463d30b1465e376cea748f2d8655 (diff)
fixes #541 - ItemQuery returns incorrect UserData
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs')
-rw-r--r--MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
index aa30cee26..035c0e9dc 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;
}
@@ -529,7 +531,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
{
new ClientWebSocket();
- _supportsNativeWebSocket = true;
+ _supportsNativeWebSocket = false;
}
catch (PlatformNotSupportedException)
{