We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7093766 commit 0866e9fCopy full SHA for 0866e9f
lib/locomotive/carrierwave/asset.rb
@@ -34,7 +34,7 @@ def content_types
34
def set_content_type_of_model(*args)
35
content_type = file.content_type
36
37
- if content_type.blank? || content_type == 'application/octet-stream'
+ if content_type.blank? || ['application/octet-stream', 'text/x-csrc'].include?(content_type)
38
content_type = File.mime_type?(original_filename)
39
end
40
0 commit comments