Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Deprecation notice for cache_control parameter

  • Loading branch information...
commit 40cb556422d15f6011e86435135298085bf8443c 1 parent b88b678
@raggi raggi authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/rack/file.rb
View
2  lib/rack/file.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.