X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e799022131f3e833179e9058060ec5e136ed2edd..9d6ae5baae9f86acb8e2d9fcb006d8b81167281b:/app/controllers/old_node_controller.rb?ds=sidebyside 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