Skip to content

Commit

Permalink
Rack deprecated Rack::File and replaced it with Rack::Files.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jan 20, 2023
1 parent 5b9a246 commit d4bf3ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_dispatch/middleware/static.rb
Expand Up @@ -53,7 +53,7 @@ def initialize(root, index: "index", headers: {}, precompressed: %i[ br gzip ],
@precompressed = Array(precompressed).map(&:to_s) | %w[ identity ]
@compressible_content_types = compressible_content_types

@file_server = ::Rack::File.new(@root, headers)
@file_server = ::Rack::Files.new(@root, headers)
end

def call(env)
Expand Down

0 comments on commit d4bf3ff

Please sign in to comment.