aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xactionpack/lib/action_controller/request.rb2
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'