mirror of
https://github.com/github/rails.git
synced 2026-02-17 17:41:39 -05:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user