diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-17 11:36:01 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-17 11:36:01 -0500 |
| commit | 43a806ad0265a537e7dc730d277cf4debe3e7dd5 (patch) | |
| tree | 16cdfc2b6d0fc13e92764a7b718e6c1b2d3fb43f /MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs | |
| parent | 80ef863dfc4ae603019fd108ec1f0066023e4819 (diff) | |
fixed chapter extraction
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs index e9a94c3ad..1a77985e4 100644 --- a/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs +++ b/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs @@ -255,13 +255,15 @@ namespace MediaBrowser.Server.Implementations.HttpServer { LogHttpRequest(context, index); - if (context.Request.IsWebSocketRequest) + var request = context.Request; + + if (request.IsWebSocketRequest) { ProcessWebSocketRequest(context); return; } - var localPath = context.Request.Url.LocalPath; + var localPath = request.Url.LocalPath; if (string.Equals(localPath, "/mediabrowser/", StringComparison.OrdinalIgnoreCase)) { @@ -288,8 +290,8 @@ namespace MediaBrowser.Server.Implementations.HttpServer return; } - var url = context.Request.Url.ToString(); - var endPoint = context.Request.RemoteEndPoint; + var url = request.Url.ToString(); + var endPoint = request.RemoteEndPoint; await ProcessRequestAsync(context).ConfigureAwait(false); |
