]> cat aescling's git repositories - mastodon.git/commitdiff
Fix host check on healthcheck path not being disabled (#16270)
authorClaire <claire.github-309c@sitedethib.com>
Mon, 17 May 2021 20:36:08 +0000 (22:36 +0200)
committerGitHub <noreply@github.com>
Mon, 17 May 2021 20:36:08 +0000 (22:36 +0200)
Fixes #16251

There was a typo in #16243

config/initializers/1_hosts.rb

index f470fddb3684f443f958eb8e1f47f6683738bc24..6ff0845c4665cfbd691991a0decb9f8ae0ae6fae 100644 (file)
@@ -31,6 +31,6 @@ Rails.application.configure do
     config.hosts << host if host.present?
     config.hosts << web_host if web_host.present?
     config.hosts.concat(alternate_domains) if alternate_domains.present?
-    config.hosts_authorization = { exclude: ->(request) { request.path == '/health' } }
+    config.host_authorization = { exclude: ->(request) { request.path == '/health' } }
   end
 end