lib/tailog.rb in tailog-0.6.6 vs lib/tailog.rb in tailog-0.6.7
- old
+ new
@@ -48,10 +48,10 @@
end
get '/logs/download' do
begin
file_path = File.join Tailog.log_path, params[:file]
- send_file file_path
+ send_file file_path, filename: "#{Tailog.server_hostname}-#{params[:file]}"
rescue => error
content = erb :error, locals: { error: error }, layout: false
end
end