U4-1441 - fix issue with IIS taking over custom errors
This commit is contained in:
@@ -77,6 +77,7 @@ namespace Umbraco.Web.Routing
|
||||
if (this.Is404)
|
||||
{
|
||||
httpContext.Response.StatusCode = 404;
|
||||
httpContext.Response.TrySkipIisCustomErrors = true;
|
||||
|
||||
if (!this.HasNode)
|
||||
{
|
||||
@@ -135,6 +136,7 @@ namespace Umbraco.Web.Routing
|
||||
|
||||
// here .Is404 _has_ to be true
|
||||
httpContext.Response.StatusCode = 404;
|
||||
httpContext.Response.TrySkipIisCustomErrors = true;
|
||||
|
||||
if (!this.HasNode)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user