X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e799022131f3e833179e9058060ec5e136ed2edd..048f7fca8c985a8c9c138d8fc0041db5231b0fc0:/app/controllers/old_node_controller.rb diff --git a/app/controllers/old_node_controller.rb b/app/controllers/old_node_controller.rb index 99e0b5675..d8a833b1d 100644 --- a/app/controllers/old_node_controller.rb +++ b/app/controllers/old_node_controller.rb @@ -1,7 +1,7 @@ class OldNodeController < ApplicationController def history - response.headers["Content-Type"] = 'application/xml' + response.headers["Content-Type"] = 'text/xml' node = Node.find(params[:id]) unless node @@ -9,7 +9,7 @@ class OldNodeController < ApplicationController return end - doc = get_xml_doc + doc = OSM::API.new.get_xml_doc node.old_nodes.each do |old_node| doc.root << old_node.to_xml_node