mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-10 15:23:40 -07:00
Tidy conversion to aspnetcore
(cherry picked from commit 490f6e2e6aa3f220cc98f257a3ca3b2bea48fb80) (cherry picked from commit 8f3f90d4078d9d072d8ad4ccc3be35963b7435d6)
This commit is contained in:
parent
876376cb77
commit
2b0da546c9
4 changed files with 7 additions and 23 deletions
|
@ -39,12 +39,12 @@ namespace Lidarr.Http.Middleware
|
|||
return false;
|
||||
}
|
||||
|
||||
if (context.Request.Path.Equals("/index.js"))
|
||||
if (context.Request.Path.Value?.EndsWith("/index.js") ?? false)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (context.Request.Path.Equals("/initialize.js"))
|
||||
if (context.Request.Path.Value?.EndsWith("/initialize.js") ?? false)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ namespace Lidarr.Http.Middleware
|
|||
}
|
||||
|
||||
if (context.Request.Path.StartsWithSegments("/log", StringComparison.CurrentCultureIgnoreCase) &&
|
||||
context.Request.Path.ToString().EndsWith(".txt", StringComparison.CurrentCultureIgnoreCase))
|
||||
(context.Request.Path.Value?.EndsWith(".txt", StringComparison.CurrentCultureIgnoreCase) ?? false))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue