Proper options for XmlSimple

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3808 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 0fbe6837
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册