lib/twilio-ruby/rest/messaging/v1/usecase.rb in twilio-ruby-7.1.1 vs lib/twilio-ruby/rest/messaging/v1/usecase.rb in twilio-ruby-7.2.0
- old
+ new
@@ -33,11 +33,12 @@
##
# Fetch the UsecaseInstance
# @return [UsecaseInstance] Fetched UsecaseInstance
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)
UsecaseInstance.new(
@version,
payload,
)
end