diff options
author | José Valim <jose.valim@gmail.com> | 2011-11-23 09:55:31 -0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-11-23 09:55:31 -0800 |
commit | f62f545f7ccb23c4616e26dbf5ea4ee17ed7b079 (patch) | |
tree | 4e347f8c65b51733e9df01eb4105c7577b6d7a52 /actionpack/lib/action_dispatch | |
parent | a93ee92da2b9ba83e3a3fe0b8d4dd5cac2790f15 (diff) | |
parent | ea70e027b63a1b8bfe4087a4de978ad4eef5575b (diff) | |
download | rails-f62f545f7ccb23c4616e26dbf5ea4ee17ed7b079.tar.gz rails-f62f545f7ccb23c4616e26dbf5ea4ee17ed7b079.tar.bz2 rails-f62f545f7ccb23c4616e26dbf5ea4ee17ed7b079.zip |
Merge pull request #3735 from kennyj/fix_3728
Fix #3728 Remove unreachable code, and add additional testcases.
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/params_parser.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/params_parser.rb b/actionpack/lib/action_dispatch/middleware/params_parser.rb index d4208ca96e..84e3dd16dd 100644 --- a/actionpack/lib/action_dispatch/middleware/params_parser.rb +++ b/actionpack/lib/action_dispatch/middleware/params_parser.rb @@ -54,12 +54,7 @@ module ActionDispatch rescue Exception => e # YAML, XML or Ruby code block errors logger.debug "Error occurred while parsing request parameters.\nContents:\n\n#{request.raw_post}" - raise - { "body" => request.raw_post, - "content_type" => request.content_mime_type, - "content_length" => request.content_length, - "exception" => "#{e.message} (#{e.class})", - "backtrace" => e.backtrace } + raise e end def content_type_from_legacy_post_data_format_header(env) |