Sha256: b10abded48b8cbf892919161d05358bd085afd33fbc1d6156792945f17d27846

Contents?: true

Size: 375 Bytes

Versions: 8

Compression:

Stored size: 375 Bytes

Contents

# Fix Rack bug https://github.com/rack/rack/issues/301
module Rack
  class Static
    def initialize(app, options={})
      @app = app
      @urls = options[:urls] || ["/favicon.ico"]
      @index = options[:index]
      root = options[:root] || Dir.pwd
      cache_control = options[:cache_control]
      @file_server = Rack::File.new(root, cache_control)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
deckrb-0.4.0 lib/deck/rack_static_patch.rb
deckrb-0.3.1 lib/deck/rack_static_patch.rb
deckrb-0.3.0 lib/deck/rack_static_patch.rb
deckrb-0.2.2 lib/deck/rack_static_patch.rb
deckrb-0.2.1 lib/deck/rack_static_patch.rb
deckrb-0.2.0 lib/deck/rack_static_patch.rb
deckrb-0.1.1 lib/deck/rack_static_patch.rb
deckrb-0.1.0 lib/deck/rack_static_patch.rb