|
|
@ -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) ||
|
|
|
|