X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/9b89d4eefe7c3a7df0ca59cabbe85649211f7f95..ff97501ed01488f8ff8e9d2e7b93b4f295f71725:/app/controllers/search_controller.rb diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index 8a632e6a2..4b8b2f402 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -33,13 +33,13 @@ class SearchController < ApplicationController if do_nodes response.headers["Error"] = "Searching of nodes is currently unavailable" - render :text => "", :status => :service_unavailable + head :service_unavailable return false end unless value response.headers["Error"] = "Searching for a key without value is currently unavailable" - render :text => "", :status => :service_unavailable + head :service_unavailable return false end @@ -94,6 +94,6 @@ class SearchController < ApplicationController doc.root << rel.to_xml_node(nil, changeset_cache, user_display_name_cache) end - render :text => doc.to_s, :content_type => "text/xml" + render :xml => doc.to_s end end