lib/twilio-ruby/rest/conversations/v1/configuration.rb in twilio-ruby-7.1.1 vs lib/twilio-ruby/rest/conversations/v1/configuration.rb in twilio-ruby-7.2.0

- old
+ new

@@ -58,12 +58,13 @@ ## # Fetch the ConfigurationInstance # @return [ConfigurationInstance] Fetched ConfigurationInstance 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) ConfigurationInstance.new( @version, payload, ) end @@ -87,11 +88,12 @@ 'DefaultMessagingServiceSid' => default_messaging_service_sid, 'DefaultInactiveTimer' => default_inactive_timer, 'DefaultClosedTimer' => default_closed_timer, }) + headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) - payload = @version.update('POST', @uri, data: data) + payload = @version.update('POST', @uri, data: data, headers: headers) ConfigurationInstance.new( @version, payload, ) end