Skip to content
Snippets Groups Projects
Commit 01caa18e authored by Claire's avatar Claire
Browse files

Fix streaming API redirection ignoring the port of `streaming_api_base_url` (#28558)

parent c609b726
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,9 @@ class Api::V1::StreamingController < Api::BaseController
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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment