aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs
diff options
context:
space:
mode:
authorClaus Vium <clausvium@gmail.com>2019-02-27 08:02:32 +0100
committerClaus Vium <clausvium@gmail.com>2019-02-27 08:02:32 +0100
commit25d3d0b731db793e4afc39ff40e0b6a1a27d6ad8 (patch)
treec84212412c5f257d13f60353c6f3a16f889cc0d4 /Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs
parent77addb22835478a32c1133cfd69ae0da2ec5edea (diff)
Remove some unused stuff
Diffstat (limited to 'Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs')
-rw-r--r--Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs17
1 files changed, 0 insertions, 17 deletions
diff --git a/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs b/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs
index 53dce667b..bddccf68b 100644
--- a/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs
+++ b/Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs
@@ -48,8 +48,6 @@ namespace Emby.Server.Implementations.SocketSharp
public string AbsoluteUri => request.GetDisplayUrl().TrimEnd('/');
- public string UserHostAddress => request.HttpContext.Connection.RemoteIpAddress.ToString();
-
public string XForwardedFor
=> StringValues.IsNullOrEmpty(request.Headers["X-Forwarded-For"]) ? null : request.Headers["X-Forwarded-For"].ToString();
@@ -142,19 +140,6 @@ namespace Emby.Server.Implementations.SocketSharp
return name;
}
- internal static bool ContainsNonAsciiChars(string token)
- {
- for (int i = 0; i < token.Length; ++i)
- {
- if ((token[i] < 0x20) || (token[i] > 0x7e))
- {
- return true;
- }
- }
-
- return false;
- }
-
private string NormalizeIp(string ip)
{
if (!string.IsNullOrWhiteSpace(ip))
@@ -171,8 +156,6 @@ namespace Emby.Server.Implementations.SocketSharp
return ip;
}
- public bool IsSecureConnection => request.IsHttps || XForwardedProtocol == "https";
-
public string[] AcceptTypes => request.Headers.GetCommaSeparatedValues(HeaderNames.Accept);
private Dictionary<string, object> items;