Fixed: favion.ico request does not require AuthenticationService
Closes #4910
This commit is contained in:
parent
80d36a06c8
commit
61e68b02ed
|
@ -167,6 +167,11 @@ namespace Sonarr.Http.Authentication
|
|||
return true;
|
||||
}
|
||||
|
||||
if (context.Request.IsFavIconRequest())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (context.Request.IsPingRequest())
|
||||
{
|
||||
return true;
|
||||
|
|
|
@ -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) ||
|
||||
|
|
Loading…
Reference in New Issue