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

- old
+ new

@@ -82,12 +82,13 @@ 'EmptyRoomTimeout' => empty_room_timeout, 'UnusedRoomTimeout' => unused_room_timeout, 'LargeRoom' => large_room, }) + 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) RoomInstance.new( @version, payload, ) end @@ -231,12 +232,13 @@ ## # Fetch the RoomInstance # @return [RoomInstance] Fetched RoomInstance 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) RoomInstance.new( @version, payload, sid: @solution[:sid], ) @@ -252,11 +254,12 @@ data = Twilio::Values.of({ 'Status' => status, }) + 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) RoomInstance.new( @version, payload, sid: @solution[:sid], )