@@ -60,7 +60,7 module Redmine | |||||
60 | extension = m[2].downcase |
|
60 | extension = m[2].downcase | |
61 | @known_types ||= Hash.new do |h, ext| |
|
61 | @known_types ||= Hash.new do |h, ext| | |
62 | type = EXTENSIONS[ext] |
|
62 | type = EXTENSIONS[ext] | |
63 |
type ||= MIME::Types. |
|
63 | type ||= MIME::Types.type_for(ext).first.to_s.presence | |
64 | h[ext] = type |
|
64 | h[ext] = type | |
65 | end |
|
65 | end | |
66 | @known_types[extension] |
|
66 | @known_types[extension] |
General Comments 0
You need to be logged in to leave comments.
Login now