mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Tidy conversion to aspnetcore
This commit is contained in:
@@ -39,12 +39,12 @@ namespace Prowlarr.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 Prowlarr.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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user