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

- old
+ new

@@ -58,21 +58,23 @@ ## # Delete the DomainCertsInstance # @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 DomainCertsInstance # @return [DomainCertsInstance] Fetched DomainCertsInstance 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) DomainCertsInstance.new( @version, payload, domain_sid: @solution[:domain_sid], ) @@ -88,11 +90,12 @@ data = Twilio::Values.of({ 'TlsCert' => tls_cert, }) + 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) DomainCertsInstance.new( @version, payload, domain_sid: @solution[:domain_sid], )