Fixed: favion.ico request does not require AuthenticationService

Closes #4910
This commit is contained in:
Mark McDowall 2022-02-24 17:48:11 -08:00
parent 80d36a06c8
commit 61e68b02ed
2 changed files with 10 additions and 0 deletions

View File

@ -167,6 +167,11 @@ namespace Sonarr.Http.Authentication
return true;
}
if (context.Request.IsFavIconRequest())
{
return true;
}
if (context.Request.IsPingRequest())
{
return true;

View File

@ -50,6 +50,11 @@ namespace Sonarr.Http.Extensions
return !request.Path.EqualsIgnoreCase("/initialize.js") && request.Path.EndsWith(".js", StringComparison.InvariantCultureIgnoreCase);
}
public static bool IsFavIconRequest(this Request request)
{
return request.Path.EqualsIgnoreCase("/favicon.ico");
}
public static bool IsSharedContentRequest(this Request request)
{
return request.Path.StartsWith("/MediaCover/", StringComparison.InvariantCultureIgnoreCase) ||