]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/old_way_controller.rb
Avoid warnings about spaces in method calls.
[rails.git] / app / controllers / old_way_controller.rb
index 8eca507ef91b96c12aee0198debec05d24861f8c..a253e3e2051f4984e034622060c77af56cc117e7 100644 (file)
@@ -1,6 +1,6 @@
 class OldWayController < ApplicationController
   def history
-    response.headers["Content-Type"] = 'application/xml'
+    response.headers["Content-Type"] = 'text/xml'
     way = Way.find(params[:id])
 
     unless way
@@ -8,7 +8,7 @@ class OldWayController < ApplicationController
       return
     end
     
-    doc = get_xml_doc
+    doc = OSM::API.new.get_xml_doc
 
     way.old_ways.each do |old_way|
       doc.root << old_way.to_xml_node