From 33286418344dc777a301bb325df65c3e5716184f Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 8 Feb 2018 06:33:23 +0100 Subject: [PATCH] If no content type is set for attachment, use application/octet-stream as fallback. --- app/controllers/ticket_articles_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/ticket_articles_controller.rb b/app/controllers/ticket_articles_controller.rb index 786748a5c..35f845a0e 100644 --- a/app/controllers/ticket_articles_controller.rb +++ b/app/controllers/ticket_articles_controller.rb @@ -253,7 +253,7 @@ class TicketArticlesController < ApplicationController send_data( file.content, filename: file.filename, - type: file.preferences['Content-Type'] || file.preferences['Mime-Type'], + type: file.preferences['Content-Type'] || file.preferences['Mime-Type'] || 'application/octet-stream', disposition: disposition ) end