Made the trackpoints call return a more sensible filename.
authorTom Hughes <tom@compton.nu>
Wed, 27 Jan 2010 13:51:15 +0000 (13:51 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 27 Jan 2010 13:51:15 +0000 (13:51 +0000)
app/controllers/api_controller.rb

index 3e9e627db7fe02c2b7f5777f32f1429b13e9ed1d..fc59ffcc7c0f3535c495aa632b632e4c50baa636 100644 (file)
@@ -107,7 +107,7 @@ class ApiController < ApplicationController
       trkseg << point.to_xml_node(timestamps)
     end
 
-    response.headers["Content-Disposition"] = "attachment; filename=\"map.osm\""
+    response.headers["Content-Disposition"] = "attachment; filename=\"tracks.gpx\""
 
     render :text => doc.to_s, :content_type => "text/xml"
   end