X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2788050685113365d6b8690c093f4e5c29fb6590..bce2c88336880c96b24b5ddd9e835528da27ddea:/app/controllers/trace_controller.rb?ds=sidebyside diff --git a/app/controllers/trace_controller.rb b/app/controllers/trace_controller.rb index 5b1702948..288a4a67b 100644 --- a/app/controllers/trace_controller.rb +++ b/app/controllers/trace_controller.rb @@ -118,7 +118,7 @@ class TraceController < ApplicationController def data trace = Trace.find(params[:id]) if trace and (trace.public? or (@user and @user == trace.user)) - send_file(trace.trace_name, :filename => "#{trace.id}.gpx", :type => trace.mime_type, :disposition => 'attachment') + send_file(trace.trace_name, :filename => "#{trace.id}#{trace.extension_name}", :type => trace.mime_type, :disposition => 'attachment') else render :nothing, :status => :not_found end