Skip to content

Commit 3ccb4dc

Browse files
authored
Fix: deprecation warning on Faraday (#568)
1 parent a4e8fba commit 3ccb4dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/twilio-ruby/http/http_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def _request(request)
3131
f.options.params_encoder = Faraday::FlatParamsEncoder
3232
f.request :url_encoded
3333
f.headers = request.headers
34-
f.basic_auth(request.auth[0], request.auth[1])
34+
f.request(:basic_auth, request.auth[0], request.auth[1])
3535
f.proxy = "#{@proxy_prot}://#{@proxy_auth}#{@proxy_path}" if @proxy_prot && @proxy_path
3636
f.options.open_timeout = request.timeout || @timeout
3737
f.options.timeout = request.timeout || @timeout

0 commit comments

Comments
 (0)