Fixed exports and other file downloads

instiki-madeleine
Alexey Verkhovsky 2005-08-15 00:24:15 +00:00
parent 0f35016069
commit 7493bc8af9
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ class ApplicationController < ActionController::Base
def send_file(file, options = {})
options[:type] ||= (FILE_TYPES[File.extname(file)] || 'application/octet-stream')
options[:stream] = false
super(file, options)
end