File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/Presentation/Nop.Web.Framework/Infrastructure/Extensions Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ public static void UsePageNotFound(this IApplicationBuilder application)
121
121
/// <param name="application">Builder for configuring an application's request pipeline</param>
122
122
public static void UseBadRequestResult ( this IApplicationBuilder application )
123
123
{
124
- application . UseStatusCodePages ( async context =>
124
+ application . UseStatusCodePages ( context =>
125
125
{
126
126
//handle 404 (Bad request)
127
127
if ( context . HttpContext . Response . StatusCode == StatusCodes . Status400BadRequest )
@@ -130,6 +130,8 @@ public static void UseBadRequestResult(this IApplicationBuilder application)
130
130
var workContext = EngineContext . Current . Resolve < IWorkContext > ( ) ;
131
131
logger . Error ( "Error 400. Bad request" , null , customer : workContext . CurrentCustomer ) ;
132
132
}
133
+
134
+ return System . Threading . Tasks . Task . CompletedTask ;
133
135
} ) ;
134
136
}
135
137
You can’t perform that action at this time.
0 commit comments