summaryrefslogtreecommitdiff
path: root/lib/rack/static.rb
diff options
context:
space:
mode:
authorZach Taylor <ztaylor234@gmail.com>2016-01-10 00:26:26 -0600
committerZach Taylor <ztaylor234@gmail.com>2016-01-10 00:26:26 -0600
commitd83be70c8cbc30cb6109350cd396b7cb2c643eab (patch)
treea8c26af01e12a0fcda6107ecbcbabbe300b1a513 /lib/rack/static.rb
parent7ddf5bc101aff121ed459c55ad394c4eb30beb38 (diff)
downloadrack-d83be70c8cbc30cb6109350cd396b7cb2c643eab.tar.gz
Use unshift(...) instead of insert(0, ...)
Diffstat (limited to 'lib/rack/static.rb')
-rw-r--r--lib/rack/static.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/static.rb b/lib/rack/static.rb
index 90d61009..17f47649 100644
--- a/lib/rack/static.rb
+++ b/lib/rack/static.rb
@@ -93,7 +93,7 @@ module Rack
# HTTP Headers
@header_rules = options[:header_rules] || []
# Allow for legacy :cache_control option while prioritizing global header_rules setting
- @header_rules.insert(0, [:all, {CACHE_CONTROL => options[:cache_control]}]) if options[:cache_control]
+ @header_rules.unshift([:all, {CACHE_CONTROL => options[:cache_control]}]) if options[:cache_control]
@file_server = Rack::File.new(root)
end