Permalink
Browse files

Merge pull request #8812 from rubys/master

Eliminate Rack::File headers deprecation warning
  • Loading branch information...
2 parents c67005f + 9cc82b7 commit 295806e11945a6fa052438a5ff8ef82cb262b977 @carlosantoniodasilva carlosantoniodasilva committed Jan 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/middleware/static.rb
@@ -6,7 +6,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 295806e

Please sign in to comment.