Skip to content
Browse files

Allow ParamsParser to parse YAML from the request body IO directly

Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information...
1 parent 01d7acd commit b0de061e7b8d3c291a328f6b0b9bfc5f48b2f907 @brianmario brianmario committed with josh
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/middleware/params_parser.rb
View
2 actionpack/lib/action_dispatch/middleware/params_parser.rb
@@ -34,7 +34,7 @@ def parse_formatted_parameters(env)
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
{}

0 comments on commit b0de061

Please sign in to comment.
Something went wrong with that request. Please try again.