]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/old_node_controller.rb
Added trackpoint serving support to 0.4 API
[rails.git] / app / controllers / old_node_controller.rb
index 99e0b5675497a09224044bedfd6433c4b4200f26..d8a833b1da7de86e3045212a9b19d1a5d04228c9 100644 (file)
@@ -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