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