mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-27 04:08:33 +00:00
Remove some unused stuff
This commit is contained in:
parent
77addb2283
commit
25d3d0b731
3 changed files with 0 additions and 44 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue