If no content type is set for attachment, use application/octet-stream as fallback.
This commit is contained in:
parent
0f539febdd
commit
3328641834
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ class TicketArticlesController < ApplicationController
|
||||||
send_data(
|
send_data(
|
||||||
file.content,
|
file.content,
|
||||||
filename: file.filename,
|
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
|
disposition: disposition
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue