Skip to content

Commit e5e4e6f

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/twilio-ruby/base/client_base.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ def request(host, port, method, uri, params = {}, data = {}, headers = {}, auth
101101
##
102102
# Build the final request uri
103103
def build_uri(uri)
104+
if (@region.nil? && @edge.nil?) || (!@region.nil? && @edge.nil?)
105+
# rubocop:disable Layout/LineLength
106+
warn '[DEPRECATION] For regional processing, DNS is of format product.<edge>.<region>.twilio.com;otherwise use product.twilio.com.'
107+
end
104108
if @edge.nil? && @region && @@region_mappings[@region]
105109
warn '[DEPRECATION] Setting default `Edge` for the provided `region`.'
106110
@edge = @@region_mappings[@region]

0 commit comments

Comments
 (0)