Permalink
Browse files

Merge pull request #15744 from mmozuras/special_keys_set

Change Http::Cache::SPECIAL_KEYS from Array to Set
  • Loading branch information...
senny committed Jun 16, 2014
2 parents 4ce99ae + e312381 commit 92de6d4c359e970cf282fe6742633b8be06b998a
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/http/cache.rb
@@ -92,7 +92,7 @@ def etag=(etag)
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]

0 comments on commit 92de6d4

Please sign in to comment.