lib/bunch/rack.rb in bunch-0.0.10 vs lib/bunch/rack.rb in bunch-0.0.11
- old
+ new
@@ -7,9 +7,11 @@
if opts.delete(:no_cache)
@headers['Cache-Control'] = 'private, max-age=0, must-revalidate'
@headers['Pragma'] = 'no-cache'
@headers['Expires'] = 'Thu, 01 Dec 1994 16:00:00 GMT'
end
+
+ Bunch.load_ignores(@root)
end
def call(env)
path = @root.join(env['PATH_INFO'].sub(/^\//, '')).to_s
type = MIME::Types.type_for(path).first || 'text/plain'