no need to remove what is not there

This commit is contained in:
Sam 2013-12-31 15:11:55 +11:00
parent 530b67aabd
commit d150bc20cf
1 changed files with 3 additions and 1 deletions

View File

@ -152,7 +152,9 @@ module Discourse
# This is not really required per-se, but we do not want to support
# XML params, we see errors in our logs about malformed XML and there
# absolutly no spot in our app were we use XML as opposed to JSON endpoints
ActionDispatch::ParamsParser::DEFAULT_PARSERS.delete(Mime::XML)
#
# Rails 4 no longer includes this by default
ActionDispatch::ParamsParser::DEFAULT_PARSERS.delete(Mime::XML) unless rails4?
if ENV['RBTRACE'] == "1"
require 'rbtrace'