diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-05-17 22:36:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-17 22:36:08 +0200 |
commit | 97539b6a96c1a3773aceb492d213620132d2a1fb (patch) | |
tree | e3e138a982f6a757949e0a5229883b92caad98c7 | |
parent | d137d2ab878520dbcf7c45812b1e390aefdc6442 (diff) |
Fix host check on healthcheck path not being disabled (#16270)
Fixes #16251 There was a typo in #16243
-rw-r--r-- | config/initializers/1_hosts.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/1_hosts.rb b/config/initializers/1_hosts.rb index f470fddb3..6ff0845c4 100644 --- a/config/initializers/1_hosts.rb +++ b/config/initializers/1_hosts.rb @@ -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 |