Skip to content

Commit 8b0d298

Browse files
committed
chore: URL query percent encoded
1 parent e5e4e6f commit 8b0d298

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/twilio-ruby/base/client_base.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ def initialize(username = nil, password = nil, account_sid = nil, region = nil,
2727
@username = username || Twilio.account_sid
2828
@password = password || Twilio.auth_token
2929
@region = region || Twilio.region
30-
if (region.nil? && !Twilio.edge.nil?) || (!region.nil? && Twilio.edge.nil?)
31-
# rubocop:disable Layout/LineLength
32-
warn '[DEPRECATION] For regional processing, DNS is of format product.<edge>.<region>.twilio.com;otherwise use product.twilio.com.'
33-
end
3430
if Twilio.edge
3531
@edge = Twilio.edge
3632
elsif @region && @@region_mappings[region]
@@ -101,7 +97,7 @@ def request(host, port, method, uri, params = {}, data = {}, headers = {}, auth
10197
##
10298
# Build the final request uri
10399
def build_uri(uri)
104-
if (@region.nil? && @edge.nil?) || (!@region.nil? && @edge.nil?)
100+
if (@region.nil? && !@edge.nil?) || (!@region.nil? && @edge.nil?)
105101
# rubocop:disable Layout/LineLength
106102
warn '[DEPRECATION] For regional processing, DNS is of format product.<edge>.<region>.twilio.com;otherwise use product.twilio.com.'
107103
end

0 commit comments

Comments
 (0)