Commit a1a13c8e authored by Francisco Juan's avatar Francisco Juan

Use 'text/plain' mime type for files without extension

parent 83b8e371
......@@ -69,7 +69,8 @@ module Redmine
def self.of(name)
return nil unless name
m = name.to_s.match(/(^|\.)([^\.]+)$/)
EXTENSIONS[m[2].downcase] if m
ext = EXTENSIONS[m[2].downcase] if m
ext || 'text/plain'
end
# Returns the css class associated to
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment