lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb in twilio-ruby-7.1.1 vs lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb in twilio-ruby-7.2.0
- old
+ new
@@ -159,20 +159,22 @@
##
# Delete the BindingInstance
# @return [Boolean] True if delete succeeds, false otherwise
def delete
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
- @version.delete('DELETE', @uri)
+ @version.delete('DELETE', @uri, headers: headers)
end
##
# Fetch the BindingInstance
# @return [BindingInstance] Fetched BindingInstance
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)
BindingInstance.new(
@version,
payload,
service_sid: @solution[:service_sid],
sid: @solution[:sid],