Made the trackpoints call return a more sensible filename.

This commit is contained in:
Tom Hughes 2010-01-27 13:51:15 +00:00
parent 5d658d5a34
commit 1e6bcb6c2d

View 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