From ad56f26ab569dc19ef4d489ab498b54539d7fd44 Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Mon, 13 Jan 2020 15:35:35 -0800 Subject: [PATCH] Revert "fix Rack::File deprecation (#4424)" This reverts commit 409991bcdbec6112c4c5d8db2b96001f5461bb84. --- lib/sidekiq/web.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sidekiq/web.rb b/lib/sidekiq/web.rb index 9141fa86..b4c2bdb9 100644 --- a/lib/sidekiq/web.rb +++ b/lib/sidekiq/web.rb @@ -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