mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Allow ParamsParser to parse YAML from the request body IO directly
Signed-off-by: Joshua Peek <josh@joshpeek.com>
This commit is contained in:
parent
01d7acd11d
commit
b0de061e7b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
{}
|
||||
|
|
Loading…
Reference in a new issue