lib/twilio-ruby/rest/video/v1/composition_settings.rb in twilio-ruby-7.1.1 vs lib/twilio-ruby/rest/video/v1/composition_settings.rb in twilio-ruby-7.2.0

- old
+ new

@@ -79,12 +79,13 @@ 'AwsS3Url' => aws_s3_url, 'AwsStorageEnabled' => aws_storage_enabled, 'EncryptionEnabled' => encryption_enabled, }) + headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) - payload = @version.create('POST', @uri, data: data) + payload = @version.create('POST', @uri, data: data, headers: headers) CompositionSettingsInstance.new( @version, payload, ) end @@ -92,11 +93,12 @@ ## # Fetch the CompositionSettingsInstance # @return [CompositionSettingsInstance] Fetched CompositionSettingsInstance 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) CompositionSettingsInstance.new( @version, payload, ) end