mirroring Rack::Mime::MIME_TYPES to Rack::File::MIME_TYPES to make sinatra compatable with the master/0.5 branchs of rack

This commit is contained in:
Erik Kastner 2008-12-04 21:59:41 -05:00 committed by Ryan Tomayko
parent eefc3d3b20
commit d25e020880
1 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,10 @@ elsif ENV['EVENT']
puts "Using Evented Mongrel"
end
unless defined?(Rack::File::MIME_TYPES)
class Rack::File; MIME_TYPES = Rack::Mime::MIME_TYPES; end
end
module Rack #:nodoc:
class Request #:nodoc: