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:
parent
409991bcdb
commit
ad56f26ab5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue