Skip to content

Commit

Permalink
Revert "Redirect HTTP 400 to a specific error page instead of default…
Browse files Browse the repository at this point in the history
… for 500" (#6656)

This reverts commit 64f5a36.
  • Loading branch information
joelverhagen authored Nov 13, 2018
1 parent 73a5c54 commit f612b6c
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 @@ -322,7 +322,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 @@ -367,10 +366,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 f612b6c

Please sign in to comment.