Use Addressable::URI#hostname instead of Addressable::URI#host
This commit is contained in:
parent
a50b90ab7e
commit
618e170f28
|
@ -79,7 +79,7 @@ module ReverseProxy
|
||||||
target_request['Accept-Encoding'] = nil
|
target_request['Accept-Encoding'] = nil
|
||||||
|
|
||||||
# Make the request
|
# Make the request
|
||||||
Net::HTTP.start(uri.host, uri.port, use_ssl: (uri.scheme == "https")) do |http|
|
Net::HTTP.start(uri.hostname, uri.port, use_ssl: (uri.scheme == "https")) do |http|
|
||||||
target_response = http.request(target_request)
|
target_response = http.request(target_request)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -141,4 +141,4 @@ module ReverseProxy
|
||||||
name.sub(/^HTTP_/, "").gsub("_", "-")
|
name.sub(/^HTTP_/, "").gsub("_", "-")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue