diff options
author | Lawrence Pit <lawrence.pit@gmail.com> | 2010-05-06 21:40:48 +1000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-05-06 20:34:47 -0700 |
commit | 1e1d30715ee75312b41045d2af1c68492ea66a05 (patch) | |
tree | 94a3f064d13aba54d02b6cada630ca84476e77e3 /actionpack/lib | |
parent | 902861a43ae90032063f4a14a3e8b4b9b9c3ca2f (diff) | |
download | rails-1e1d30715ee75312b41045d2af1c68492ea66a05.tar.gz rails-1e1d30715ee75312b41045d2af1c68492ea66a05.tar.bz2 rails-1e1d30715ee75312b41045d2af1c68492ea66a05.zip |
Fix parsing xml input by ActionDispatch::ParamsParser
[#4437 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'actionpack/lib')
-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 a25089176c..d4208ca96e 100644 --- a/actionpack/lib/action_dispatch/middleware/params_parser.rb +++ b/actionpack/lib/action_dispatch/middleware/params_parser.rb @@ -38,7 +38,7 @@ module ActionDispatch when Proc strategy.call(request.raw_post) when :xml_simple, :xml_node - data = Hash.from_xml(request.body) || {} + data = Hash.from_xml(request.body.read) || {} request.body.rewind if request.body.respond_to?(:rewind) data.with_indifferent_access when :yaml |