lib/twilio-ruby/rest/monitor/v1/alert.rb in twilio-ruby-7.1.1 vs lib/twilio-ruby/rest/monitor/v1/alert.rb in twilio-ruby-7.2.0
- old
+ new
@@ -160,11 +160,12 @@
##
# Fetch the AlertInstance
# @return [AlertInstance] Fetched AlertInstance
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)
AlertInstance.new(
@version,
payload,
sid: @solution[:sid],
)