Twilio::HTTP::Client with proxy address and port but without user and password raises exception #435
Labels
difficulty: easy
fix is easy in difficulty
status: work in progress
Twilio or the community is in the process of implementing
type: community enhancement
feature request not on Twilio's roadmap
When you create an HTTP client with proxy address and port but without user and password, then a bad URI is supplied to Faraday's proxy on line
twilio-ruby/lib/twilio-ruby/http/http_client.rb
Line 28 in 25a8f97
:@<proxy_address>:<proxy_port>
but should be of the form<proxy_address>:<proxy_port>
. One solution is to prepend#{@proxy_user}:#{@proxy_pass}@
only when both variables are non-nil
.Version: 5.17.0
Code Snippet
Exception/Log
Steps to Reproduce
Paste the above code snippet into
irb
.The text was updated successfully, but these errors were encountered: