Skip to content

Commit

Permalink
Disable custom pages for 400 errors (#4794)
Browse files Browse the repository at this point in the history
  • Loading branch information
skofman1 committed Oct 2, 2017
1 parent b4189ae commit 2162ec9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/NuGetGallery/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@
<customErrors mode="RemoteOnly" defaultRedirect="~/Errors/500" redirectMode="ResponseRedirect">
<!-- Adding ? at the end of the redirect URL prevents the illegal request to be passed
as a query parameter to the redirect URL and causing additional failures -->
<error statusCode="400" redirect="~/Errors/400?" />
<error statusCode="404" redirect="~/Errors/404" />
<error statusCode="500" redirect="~/Errors/500" />
</customErrors>
Expand Down Expand Up @@ -348,10 +347,8 @@
</modules>
<validation validateIntegratedModeConfiguration="false" />
<httpErrors errorMode="DetailedLocalOnly">
<remove statusCode="400" />
<remove statusCode="404" />
<remove statusCode="500" />
<error statusCode="400" path="/Errors/400?" responseMode="ExecuteURL" />
<error statusCode="404" path="/Errors/404" responseMode="ExecuteURL" />
<error statusCode="500" path="/Errors/500" responseMode="ExecuteURL" />
</httpErrors>
Expand Down

0 comments on commit 2162ec9

Please sign in to comment.