Fix streaming API redirection ignoring the port of streaming_api_base_url
(#28558)
This commit is contained in:
parent
4c5575e8e0
commit
a1a71263e0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user