aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-06-16 08:35:00 +0200
committerYves Senn <yves.senn@gmail.com>2014-06-16 08:35:00 +0200
commit92de6d4c359e970cf282fe6742633b8be06b998a (patch)
tree477c2bcb73fb27ae20c39d8a4efbbf9f093c14b9 /actionpack
parent4ce99ae347e794bffb468c654afc07d2722bac99 (diff)
parente3123815898145888fe84f053b14f5cfc33c1684 (diff)
downloadrails-92de6d4c359e970cf282fe6742633b8be06b998a.tar.gz
rails-92de6d4c359e970cf282fe6742633b8be06b998a.tar.bz2
rails-92de6d4c359e970cf282fe6742633b8be06b998a.zip
Merge pull request #15744 from mmozuras/special_keys_set
Change Http::Cache::SPECIAL_KEYS from Array to Set
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/http/cache.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/cache.rb b/actionpack/lib/action_dispatch/http/cache.rb
index f9b278349e..63a3cbc90b 100644
--- a/actionpack/lib/action_dispatch/http/cache.rb
+++ b/actionpack/lib/action_dispatch/http/cache.rb
@@ -92,7 +92,7 @@ module ActionDispatch
LAST_MODIFIED = "Last-Modified".freeze
ETAG = "ETag".freeze
CACHE_CONTROL = "Cache-Control".freeze
- SPECIAL_KEYS = %w[extras no-cache max-age public must-revalidate]
+ SPECIAL_KEYS = Set.new(%w[extras no-cache max-age public must-revalidate])
def cache_control_segments
if cache_control = self[CACHE_CONTROL]