Fix host check on healthcheck path not being disabled (#16270)

Fixes #16251

There was a typo in #16243
lolsob-rspec
Claire 2021-05-17 22:36:08 +02:00 committed by GitHub
parent a562f74368
commit b818d6090a
1 changed files with 1 additions and 1 deletions

View File

@ -31,6 +31,6 @@ Rails.application.configure do
config.hosts << host if host.present? config.hosts << host if host.present?
config.hosts << web_host if web_host.present? config.hosts << web_host if web_host.present?
config.hosts.concat(alternate_domains) if alternate_domains.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
end end