# File mod_docs/local.rb, line 33 def content_type(path) curr_map = @suffix_map curr_type = curr_map[:content_type] path.upcase.reverse.each_byte do |c| break unless (curr_map.include? c) curr_map = curr_map[c] curr_type = curr_map[:content_type] if curr_map[:content_type] end curr_type end