lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb in twilio-ruby-7.1.1 vs lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb in twilio-ruby-7.2.0

- old
+ new

@@ -159,12 +159,13 @@ ## # Fetch the ReservationInstance # @return [ReservationInstance] Fetched ReservationInstance 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) ReservationInstance.new( @version, payload, workspace_sid: @solution[:workspace_sid], task_sid: @solution[:task_sid], @@ -343,11 +344,11 @@ 'EndConferenceOnCustomerExit' => end_conference_on_customer_exit, 'BeepOnCustomerEntrance' => beep_on_customer_entrance, 'JitterBufferSize' => jitter_buffer_size, }) + headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, }) - headers = Twilio::Values.of({ 'If-Match' => if_match, }) payload = @version.update('POST', @uri, data: data, headers: headers) ReservationInstance.new( @version, payload, workspace_sid: @solution[:workspace_sid],