mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Made the post_format work with content-type
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1337 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
24b13acd42
commit
997eb90c90
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue