From 997eb90c90ed43c5fa291a151f8848cb5758f467 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 20 May 2005 18:39:40 +0000 Subject: Made the post_format work with content-type git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1337 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') 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' -- cgit v1.2.3