Remove some unused stuff

This commit is contained in:
Claus Vium
2019-02-27 08:02:32 +01:00
parent 77addb2283
commit 25d3d0b731
3 changed files with 0 additions and 44 deletions

View File

@@ -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;