diff --git a/pact_broker/basic_auth.rb b/pact_broker/basic_auth.rb index 672bbca..8a5b57b 100644 --- a/pact_broker/basic_auth.rb +++ b/pact_broker/basic_auth.rb @@ -23,14 +23,14 @@ def call(env) end def use_basic_auth?(env) - !(is_badge_path?(env) || is_heartbeat_and_public_access_allowed(env)) + !(is_badge_path?(env) || is_heartbeat_and_public_access_allowed?(env)) end def is_badge_path?(env) env[PATH_INFO] =~ BADGE_PATH end - def is_heartbeat_and_public_access_allowed? - @allow_public_access_to_heartbeat && env[PATH_INFO] == BADGE_PATH + def is_heartbeat_and_public_access_allowed?(env) + @allow_public_access_to_heartbeat && env[PATH_INFO] == HEARTBEAT_PATH end end