Skip to content

Commit

Permalink
Fix streaming API redirection ignoring the port of `streaming_api_bas…
Browse files Browse the repository at this point in the history
…e_url` (#28558)
  • Loading branch information
ClearlyClaire committed Jan 15, 2024
1 parent 514f1d3 commit 9ab85bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/api/v1/streaming_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ def index

def streaming_api_url
Addressable::URI.parse(request.url).tap do |uri|
uri.host = Addressable::URI.parse(Rails.configuration.x.streaming_api_base_url).host
base_url = Addressable::URI.parse(Rails.configuration.x.streaming_api_base_url)
uri.host = base_url.host
uri.port = base_url.port
end.to_s
end
end

0 comments on commit 9ab85bc

Please sign in to comment.