Skip to content

Commit

Permalink
Adjust Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasklemm committed Aug 17, 2012
1 parent beddb2a commit bc60422
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rack/static.rb
Expand Up @@ -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
Expand Down

0 comments on commit bc60422

Please sign in to comment.