mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
66eb3f02cc
Currently Rack raises a TypeError when it encounters a malformed or ambiguous hash like `foo[]=bar&foo[4]=bar`. Rather than pass this through to the application this commit captures the exception and re-raises it using a new ActionController::BadRequest exception. The new ActionController::BadRequest exception returns a 400 error instead of the 500 error that would've been returned by the original TypeError. This allows exception notification libraries to ignore these errors if so desired. Closes #3051 |
||
---|---|---|
.. | ||
cache.rb | ||
filter_parameters.rb | ||
headers.rb | ||
mime_negotiation.rb | ||
mime_type.rb | ||
mime_types.rb | ||
parameter_filter.rb | ||
parameters.rb | ||
rack_cache.rb | ||
request.rb | ||
response.rb | ||
upload.rb | ||
url.rb |