]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/way_controller.rb
close #411 segments should not be allowed where node_a == node_b
[rails.git] / app / controllers / way_controller.rb
index f9fd70af41443915e680ccd9f66c8b7a3fb8c000..875a29583293dd49dcffab7c40756334d57642cc 100644 (file)
@@ -86,11 +86,11 @@ class WayController < ApplicationController
   end
 
   def ways
-    response.headers["Content-Type"] = 'application/xml'
+    response.headers["Content-Type"] = 'text/xml'
     ids = params['ways'].split(',').collect {|w| w.to_i }
     if ids.length > 0
       waylist = Way.find(ids)
-      doc = get_xml_doc
+      doc = OSM::API.new.get_xml_doc
       waylist.each do |way|
         doc.root << way.to_xml_node
       end