Permalink
Browse files

Adjust Documentation

  • Loading branch information...
1 parent beddb2a commit bc60422f19690e151d4a3cce6e6738bcc021350d @thomasklemm thomasklemm committed Aug 17, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/rack/static.rb
View
3 lib/rack/static.rb
@@ -51,7 +51,8 @@ def initialize(app, options={})
@index = options[:index]
root = options[:root] || Dir.pwd
headers = options[:headers] || {}
- # Allow for legacy :cache_control option while prioritizing headers hash settings
+ # Allow for legacy :cache_control option
+ # while prioritizing :headers => {'Cache-Control' => ''} settings
headers['Cache-Control'] ||= options[:cache_control] if options[:cache_control]
@file_server = Rack::File.new(root, headers)
end

0 comments on commit bc60422

Please sign in to comment.