# File lib/cgikit.rb, line 4716 def content_type( path ) # for ruby 1.6 base = File.basename path type = nil if base =~ /\.([^\.]+)$/ then type = MIME[$1] end type end