diff options
author | Brian Lopez <seniorlopez@gmail.com> | 2009-05-17 16:09:28 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-05-17 16:09:28 -0500 |
commit | b0de061e7b8d3c291a328f6b0b9bfc5f48b2f907 (patch) | |
tree | c4274b1e304f550e0b0cc4f073a097c5b2256738 /actionpack/lib/action_dispatch/middleware | |
parent | 01d7acd11d631d980497870aad1af42a0c66115c (diff) | |
download | rails-b0de061e7b8d3c291a328f6b0b9bfc5f48b2f907.tar.gz rails-b0de061e7b8d3c291a328f6b0b9bfc5f48b2f907.tar.bz2 rails-b0de061e7b8d3c291a328f6b0b9bfc5f48b2f907.zip |
Allow ParamsParser to parse YAML from the request body IO directly
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/params_parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/params_parser.rb b/actionpack/lib/action_dispatch/middleware/params_parser.rb index a42c6598e0..e83cf9236b 100644 --- a/actionpack/lib/action_dispatch/middleware/params_parser.rb +++ b/actionpack/lib/action_dispatch/middleware/params_parser.rb @@ -34,7 +34,7 @@ module ActionDispatch when :xml_simple, :xml_node request.body.size == 0 ? {} : Hash.from_xml(request.body).with_indifferent_access when :yaml - YAML.load(request.raw_post) + YAML.load(request.body) when :json if request.body.size == 0 {} |