lib/twilio-ruby/rest/api/v2010/account/transcription.rb in twilio-ruby-7.1.1 vs lib/twilio-ruby/rest/api/v2010/account/transcription.rb in twilio-ruby-7.2.0

- old
+ new

@@ -145,20 +145,22 @@ ## # Delete the TranscriptionInstance # @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 TranscriptionInstance # @return [TranscriptionInstance] Fetched TranscriptionInstance 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) TranscriptionInstance.new( @version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid],