U4-1441 - fix issue with IIS taking over custom errors

This commit is contained in:
Stephan
2013-02-05 16:29:10 -01:00
parent 683d793460
commit c8e08b8ef8

View File

@@ -78,6 +78,7 @@ namespace Umbraco.Web.Routing
if (this.Is404)
{
httpContext.Response.StatusCode = 404;
httpContext.Response.TrySkipIisCustomErrors = true;
if (!this.HasNode)
{
@@ -136,6 +137,7 @@ namespace Umbraco.Web.Routing
// here .Is404 _has_ to be true
httpContext.Response.StatusCode = 404;
httpContext.Response.TrySkipIisCustomErrors = true;
if (!this.HasNode)
{