Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow ParamsParser to parse YAML from the request body IO directly

Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information...
commit b0de061e7b8d3c291a328f6b0b9bfc5f48b2f907 1 parent 01d7acd
@brianmario brianmario authored josh committed
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
{}
Please sign in to comment.
Something went wrong with that request. Please try again.