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

- old
+ new

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