Skip to content

Commit c1e6a6e

Browse files
committed
Ensure we always rely on on the configuration and don't hardcode 404
1 parent ad8010c commit c1e6a6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Geta.NotFoundHandler/Core/RequestHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public virtual void Handle(HttpContext context)
4444
return;
4545
}
4646

47-
if (context.Response.StatusCode != StatusCodes.Status404NotFound && (_configuration.ActiveStatusCodes.Any() && !_configuration.ActiveStatusCodes.Contains(context.Response.StatusCode)))
47+
if (_configuration.ActiveStatusCodes.Any() && !_configuration.ActiveStatusCodes.Contains(context.Response.StatusCode))
4848
{
4949
LogDebug("Not a accepted statuscode.", context);
5050
return;

0 commit comments

Comments
 (0)