Use X-POST_DATA_FORMAT instead of just POST_DATA_FORMAT

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1305 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson
2005-05-14 09:31:35 +00:00
parent 86d2b2792a
commit cada2c71d3
2 changed files with 4 additions and 4 deletions

View File

@@ -63,8 +63,8 @@ module ActionController #:nodoc:
end
def request_parameters
if env['HTTP_POST_DATA_FORMAT']
CGIMethods.parse_formatted_request_parameters(env['HTTP_POST_DATA_FORMAT'].downcase.intern, env['RAW_POST_DATA'])
if env['HTTP_X_POST_DATA_FORMAT']
CGIMethods.parse_formatted_request_parameters(env['HTTP_X_POST_DATA_FORMAT'].downcase.intern, env['RAW_POST_DATA'])
else
CGIMethods.parse_request_parameters(@cgi.params)
end

View File

@@ -33,8 +33,8 @@ module ActionController
def post_format
if env['POST_DATA_FORMAT']
env['POST_DATA_FORMAT'].downcase.intern
if env['HTTP_X_POST_DATA_FORMAT']
env['HTTP_X_POST_DATA_FORMAT'].downcase.intern
else
:query_string
end