aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs
diff options
context:
space:
mode:
authorVasily <JustAMan@users.noreply.github.com>2019-03-08 00:23:00 +0300
committerGitHub <noreply@github.com>2019-03-08 00:23:00 +0300
commit028a98d2c1440ba25e50e54ae97e81c55bc4c497 (patch)
treed10e832cb29d4dce888f18e68eb8bb99c426892b /Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs
parent0f70a81db3d2d94dc50a407ba39963fd5df6d01f (diff)
parentc5fce647defd2eace2d2431ccc52ffe1d027c184 (diff)
Merge pull request #1058 from Bond-009/clean
Cleanup/simplification
Diffstat (limited to 'Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs')
-rw-r--r--Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs b/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs
index bc002dc4c..10b7c4514 100644
--- a/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs
+++ b/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs
@@ -4,7 +4,6 @@ using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
-using Emby.Server.Implementations.HttpServer;
using MediaBrowser.Model.Services;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Extensions;
@@ -405,8 +404,7 @@ namespace Emby.Server.Implementations.SocketSharp
return null;
}
- var path = sbPathInfo.ToString();
- return path.Length > 1 ? path.TrimEnd('/') : "/";
+ return sbPathInfo.Length > 1 ? sbPathInfo.ToString().TrimEnd('/') : "/";
}
public string UserAgent => request.Headers[HeaderNames.UserAgent];