Skip to content

Commit

Permalink
Match BGS with port (#16075)
Browse files Browse the repository at this point in the history
  • Loading branch information
acovrig authored Mar 26, 2024
1 parent 885d782 commit de101d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/claims_api/lib/bgs_service/local_bgs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ def self.breakers_service
url = Settings.bgs.url
path = URI.parse(url).path
host = URI.parse(url).host
port = URI.parse(url).port
matcher = proc do |request_env|
request_env.url.host == host && request_env.url.path =~ /^#{path}/
request_env.url.host == host &&
request_env.url.port == port &&
request_env.url.path =~ /^#{path}/
end

Breakers::Service.new(
Expand Down

0 comments on commit de101d0

Please sign in to comment.