Proper options for XmlSimple
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3808 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
0fbe6837b1
commit
6fd737b76b
@ -63,7 +63,7 @@ def self.parse_formatted_request_parameters(format, raw_post_data)
|
||||
when Proc
|
||||
strategy.call(raw_post_data)
|
||||
when :xml_simple
|
||||
XmlSimple.xml_in(raw_post_data, 'ForceArray' => false, :keeproot => true)
|
||||
XmlSimple.xml_in(raw_post_data, 'ForceArray' => false, 'keeproot' => true)
|
||||
when :yaml
|
||||
YAML.load(raw_post_data)
|
||||
when :xml_node
|
||||
|
@ -155,7 +155,6 @@ def path
|
||||
# This method returns nil unless the web server is apache.
|
||||
def relative_url_root
|
||||
@@relative_url_root ||= server_software == 'apache' ? @env["SCRIPT_NAME"].to_s.sub(/\/dispatch\.(fcgi|rb|cgi)$/, '') : ''
|
||||
|
||||
end
|
||||
|
||||
# Returns the port number of this request as an integer.
|
||||
|
Loading…
Reference in New Issue
Block a user