X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/6b7374727128c95168d4fa6f6503a0e7d1bae729..2803612d9db2f89c4eaa57bbf4606b56967caa62:/app/controllers/node_controller.rb diff --git a/app/controllers/node_controller.rb b/app/controllers/node_controller.rb index 416d1794f..c1a43c898 100644 --- a/app/controllers/node_controller.rb +++ b/app/controllers/node_controller.rb @@ -4,6 +4,7 @@ class NodeController < ApplicationController before_filter :authorize def create + response.headers["Content-Type"] = 'application/xml' if request.put? node = nil begin @@ -33,6 +34,7 @@ class NodeController < ApplicationController end def rest + response.headers["Content-Type"] = 'application/xml' unless Node.exists?(params[:id]) render :nothing => true, :status => 404 return @@ -86,6 +88,7 @@ class NodeController < ApplicationController end def history + response.headers["Content-Type"] = 'application/xml' node = Node.find(params[:id]) unless node