1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Revert "fix Rack::File deprecation (#4424)"

This reverts commit 409991bcdb.
This commit is contained in:
Mike Perham 2020-01-13 15:35:35 -08:00
parent 409991bcdb
commit ad56f26ab5

View file

@ -14,7 +14,7 @@ require "sidekiq/web/application"
require "rack/protection"
require "rack/builder"
require "rack/files"
require "rack/file"
require "rack/session/cookie"
module Sidekiq
@ -183,7 +183,7 @@ module Sidekiq
::Rack::Builder.new do
%w[stylesheets javascripts images].each do |asset_dir|
map "/#{asset_dir}" do
run ::Rack::Files.new("#{ASSETS}/#{asset_dir}", {"Cache-Control" => "public, max-age=86400"})
run ::Rack::File.new("#{ASSETS}/#{asset_dir}", {"Cache-Control" => "public, max-age=86400"})
end
end