Skip to content

Commit 5518812

Browse files
committed
Fix tests.
1 parent 6a10062 commit 5518812

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Components/Endpoints/src/RazorComponentEndpointInvoker.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ private async Task<RequestValidationState> ValidateRequestAsync(HttpContext cont
180180
// Disable POST functionality during exception handling and reexecution.
181181
// The exception handler middleware will not update the request method, and we don't
182182
// want to run the form handling logic against the error page.
183-
(context.Features.Get<IExceptionHandlerFeature>() == null ||
184-
context.Features.Get<IStatusCodePagesFeature>() == null);
183+
context.Features.Get<IExceptionHandlerFeature>() == null &&
184+
context.Features.Get<IStatusCodePagesFeature>() == null;
185185

186186
if (processPost)
187187
{

0 commit comments

Comments
 (0)