lib/twilio-ruby/rest/messaging/v1/domain_config.rb in twilio-ruby-7.1.1 vs lib/twilio-ruby/rest/messaging/v1/domain_config.rb in twilio-ruby-7.2.0

- old
+ new

@@ -58,12 +58,13 @@ ## # Fetch the DomainConfigInstance # @return [DomainConfigInstance] Fetched DomainConfigInstance 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) DomainConfigInstance.new( @version, payload, domain_sid: @solution[:domain_sid], ) @@ -88,11 +89,12 @@ 'CallbackUrl' => callback_url, 'ContinueOnFailure' => continue_on_failure, 'DisableHttps' => disable_https, }) + 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) DomainConfigInstance.new( @version, payload, domain_sid: @solution[:domain_sid], )