X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e799022131f3e833179e9058060ec5e136ed2edd..e6af088dda8e85f53b11ffbaddb11edf08e4a046:/app/controllers/old_segment_controller.rb diff --git a/app/controllers/old_segment_controller.rb b/app/controllers/old_segment_controller.rb index 1971e5dca..1f64987ed 100644 --- a/app/controllers/old_segment_controller.rb +++ b/app/controllers/old_segment_controller.rb @@ -1,7 +1,7 @@ class OldSegmentController < ApplicationController def history - response.headers["Content-Type"] = 'application/xml' + response.headers["Content-Type"] = 'text/xml' segment = Segment.find(params[:id]) unless segment @@ -9,7 +9,7 @@ class OldSegmentController < ApplicationController return end - doc = get_xml_doc + doc = OSM::API.new.get_xml_doc segment.old_segments.each do |old_segment| doc.root << old_segment.to_xml_node @@ -17,9 +17,4 @@ class OldSegmentController < ApplicationController render :text => doc.to_s end - - - - - end