mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-02 00:12:24 +00:00
Remove more and more warnings
This commit is contained in:
@@ -74,6 +74,7 @@ namespace Emby.Server.Implementations.HttpServer.Security
|
||||
auth.TryGetValue("Token", out token);
|
||||
}
|
||||
|
||||
#pragma warning disable CA1508 // string.IsNullOrEmpty(token) is always false.
|
||||
if (string.IsNullOrEmpty(token))
|
||||
{
|
||||
token = headers["X-Emby-Token"];
|
||||
@@ -111,6 +112,7 @@ namespace Emby.Server.Implementations.HttpServer.Security
|
||||
// Request doesn't contain a token.
|
||||
return authInfo;
|
||||
}
|
||||
#pragma warning restore CA1508
|
||||
|
||||
authInfo.HasToken = true;
|
||||
var result = _authRepo.Get(new AuthenticationInfoQuery
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace Emby.Server.Implementations.HttpServer
|
||||
public event EventHandler<EventArgs>? Closed;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the remote end point.
|
||||
/// Gets the remote end point.
|
||||
/// </summary>
|
||||
public IPAddress? RemoteEndPoint { get; }
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace Emby.Server.Implementations.HttpServer
|
||||
public DateTime LastKeepAliveDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the query string.
|
||||
/// Gets the query string.
|
||||
/// </summary>
|
||||
/// <value>The query string.</value>
|
||||
public IQueryCollection QueryString { get; }
|
||||
|
||||
Reference in New Issue
Block a user