lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb in twilio-ruby-7.1.1 vs lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb in twilio-ruby-7.2.0
- old
+ new
@@ -144,11 +144,12 @@
##
# Fetch the CountryInstance
# @return [CountryInstance] Fetched CountryInstance
def fetch
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
- payload = @version.fetch('GET', @uri)
+ payload = @version.fetch('GET', @uri, headers: headers)
CountryInstance.new(
@version,
payload,
iso_country: @solution[:iso_country],
)