X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d07277efba0c0069705bbefa68f2624a9c6c9ff0..332bcb6b181109d56fc8b30ae78ade3961849a83:/app/controllers/node_controller.rb diff --git a/app/controllers/node_controller.rb b/app/controllers/node_controller.rb index bd81c9aa2..cc29c09e5 100644 --- a/app/controllers/node_controller.rb +++ b/app/controllers/node_controller.rb @@ -5,7 +5,7 @@ class NodeController < ApplicationController after_filter :compress_output def create - response.headers["Content-Type"] = 'application/xml' + response.headers["Content-Type"] = 'text/xml' if request.put? node = nil begin @@ -35,7 +35,7 @@ class NodeController < ApplicationController end def rest - response.headers["Content-Type"] = 'application/xml' + response.headers["Content-Type"] = 'text/xml' unless Node.exists?(params[:id]) render :nothing => true, :status => 404 return @@ -89,7 +89,7 @@ class NodeController < ApplicationController end def nodes - response.headers["Content-Type"] = 'application/xml' + response.headers["Content-Type"] = 'text/xml' ids = params['nodes'].split(',').collect {|n| n.to_i } if ids.length > 0 nodelist = Node.find(ids)