Permalink
Browse files

Merge pull request #8812 from rubys/master

Eliminate Rack::File headers deprecation warning
  • Loading branch information...
1 parent d39d878 commit 54faddf2a8342466ad1c685ceac46509ae1f110f @carlosantoniodasilva carlosantoniodasilva committed Jan 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/middleware/static.rb
@@ -5,7 +5,7 @@ class FileHandler
def initialize(root, cache_control)
@root = root.chomp('/')
@compiled_root = /^#{Regexp.escape(root)}/
- @file_server = ::Rack::File.new(@root, cache_control)
+ @file_server = ::Rack::File.new(@root, 'Cache-Control' => cache_control)
end
def match?(path)

0 comments on commit 54faddf

Please sign in to comment.