diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-20 18:39:40 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-20 18:39:40 +0000 |
commit | 997eb90c90ed43c5fa291a151f8848cb5758f467 (patch) | |
tree | a84a33bf2746e37ec8d26f62d2027cb8f62cf6ac | |
parent | 24b13acd428d50c077d913d6f308842377eddf62 (diff) | |
download | rails-997eb90c90ed43c5fa291a151f8848cb5758f467.tar.gz rails-997eb90c90ed43c5fa291a151f8848cb5758f467.tar.bz2 rails-997eb90c90ed43c5fa291a151f8848cb5758f467.zip |
Made the post_format work with content-type
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1337 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rwxr-xr-x | actionpack/lib/action_controller/request.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/request.rb b/actionpack/lib/action_controller/request.rb index 214edf250e..af81f0775a 100755 --- a/actionpack/lib/action_controller/request.rb +++ b/actionpack/lib/action_controller/request.rb @@ -35,7 +35,7 @@ module ActionController if env['HTTP_X_POST_DATA_FORMAT'] env['HTTP_X_POST_DATA_FORMAT'].downcase.intern else - case env['HTTP_CONTENT_TYPE'] + case env['CONTENT_TYPE'] when 'application/xml', 'text/xml' :xml when 'application/x-yaml', 'text/x-yaml' |