Remove CacheBuster default options (#30718)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2024-06-21 15:32:49 +00:00
1 parent 4651c0cb39
commit 72484a194f
2 files changed
+2 -15

No files matched your search

+2 -7
View File
@@ -2,13 +2,8 @@
class CacheBuster
def initialize(options = {})
Rails.application.deprecators[:mastodon].warn('Default values for the cache buster secret header name and values will be removed in Mastodon 4.3. Please set them explicitely if you rely on those.') unless options[:http_method] || (options[:secret] && options[:secret_header])
@secret_header = options[:secret_header] ||
(options[:http_method] ? nil : 'Secret-Header')
@secret = options[:secret] ||
(options[:http_method] ? nil : 'True')
@secret_header = options[:secret_header]
@secret = options[:secret]
@http_method = options[:http_method] || 'GET'
end