X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/19f05fbf8df3d539f40b7e6fd1f032679a8d6bb9..88a206b0f2979caf066a3127afd3cd71b39da7c8:/app/controllers/node_controller.rb diff --git a/app/controllers/node_controller.rb b/app/controllers/node_controller.rb index 5cdbca827..cc29c09e5 100644 --- a/app/controllers/node_controller.rb +++ b/app/controllers/node_controller.rb @@ -4,8 +4,8 @@ class NodeController < ApplicationController before_filter :authorize after_filter :compress_output - def create - response.headers["Content-Type"] = 'application/xml' + def create + 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)