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