From 99dd722eecc15a69130af4d862b8bece24097e16 Mon Sep 17 00:00:00 2001 From: likp Date: Tue, 25 Mar 2025 09:22:56 +0100 Subject: [PATCH] Added paranthesis --- PxWeb/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PxWeb/Program.cs b/PxWeb/Program.cs index 3066e3b6..ebed6868 100644 --- a/PxWeb/Program.cs +++ b/PxWeb/Program.cs @@ -197,7 +197,7 @@ public static void Main(string[] args) app.UseIpRateLimiting(); } - app.UseWhen(context => !context.Request.Path.StartsWithSegments(pxApiConfiguration.RoutePrefix + "/admin") || context.Request.Path.StartsWithSegments("/admin"), appBuilder => + app.UseWhen(context => !(context.Request.Path.StartsWithSegments(pxApiConfiguration.RoutePrefix + "/admin") || context.Request.Path.StartsWithSegments("/admin")), appBuilder => { appBuilder.UseCacheMiddleware(); });