diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-14 08:36:19 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-14 08:36:19 +0000 |
commit | db11abbfba2401790f15db98678cee6d3da118a0 (patch) | |
tree | d5b251be52dde5d1df4c1582852fdf39c7e3a019 /actionpack/lib/action_controller/cgi_process.rb | |
parent | 51f9c931ea47034bcedd5196a783262a4530386d (diff) | |
download | rails-db11abbfba2401790f15db98678cee6d3da118a0.tar.gz rails-db11abbfba2401790f15db98678cee6d3da118a0.tar.bz2 rails-db11abbfba2401790f15db98678cee6d3da118a0.zip |
Added support for POST data in form of YAML or XML, which is controller through the POST_DATA_MARSHAL header
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1303 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/cgi_process.rb')
-rw-r--r-- | actionpack/lib/action_controller/cgi_process.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/cgi_process.rb b/actionpack/lib/action_controller/cgi_process.rb index fb46c6d353..029c1ebf24 100644 --- a/actionpack/lib/action_controller/cgi_process.rb +++ b/actionpack/lib/action_controller/cgi_process.rb @@ -63,7 +63,11 @@ module ActionController #:nodoc: end def request_parameters - CGIMethods.parse_request_parameters(@cgi.params) + if env['HTTP_POST_DATA_FORMAT'] + CGIMethods.parse_formatted_request_parameters(env['HTTP_POST_DATA_FORMAT'].downcase.intern, env['RAW_POST_DATA']) + else + CGIMethods.parse_request_parameters(@cgi.params) + end end def env |