Permalink
Browse files

Deprecation notice for cache_control parameter

  • Loading branch information...
1 parent b88b678 commit 40cb556422d15f6011e86435135298085bf8443c @raggi raggi committed Aug 26, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/rack/file.rb
View
@@ -25,6 +25,8 @@ def initialize(root, headers={})
@root = root
# Allow a cache_control string for backwards compatibility
if headers.instance_of? String
+ warn \
+ "Rack::File headers parameter replaces cache_control after Rack 1.5."
@headers = { 'Cache-Control' => headers }
else
@headers = headers

0 comments on commit 40cb556

Please sign in to comment.