FIX: add Content-Disposition and Content-Type headers when downloading attachments

This commit is contained in:
Régis Hanol
2017-02-20 15:59:01 +01:00
parent fd62909819
commit 3ce3abef8f
2 changed files with 7 additions and 3 deletions

View File

@ -28,7 +28,7 @@ class FileHelper
private
def self.images
@@images ||= Set.new ["jpg", "jpeg", "png", "gif", "tif", "tiff", "bmp", "svg", "webp", "ico"]
@@images ||= Set.new %w{jpg jpeg png gif tif tiff bmp svg webp ico}
end
def self.images_regexp