Fixed: favion.ico request does not require AuthenticationService

Closes #4910
pull/4920/head
Mark McDowall 3 years ago
parent 80d36a06c8
commit 61e68b02ed

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

@ -50,6 +50,11 @@ namespace Sonarr.Http.Extensions
return !request.Path.EqualsIgnoreCase("/initialize.js") && request.Path.EndsWith(".js", StringComparison.InvariantCultureIgnoreCase); 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) public static bool IsSharedContentRequest(this Request request)
{ {
return request.Path.StartsWith("/MediaCover/", StringComparison.InvariantCultureIgnoreCase) || return request.Path.StartsWith("/MediaCover/", StringComparison.InvariantCultureIgnoreCase) ||

Loading…
Cancel
Save