提交 92de6d4c 编写于 作者: Y Yves Senn

Merge pull request #15744 from mmozuras/special_keys_set

Change Http::Cache::SPECIAL_KEYS from Array to Set
......@@ -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]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册