Skip to content

Commit

Permalink
Fix HTTParty deprecation warning about response.body
Browse files Browse the repository at this point in the history
  • Loading branch information
timabell committed Jun 8, 2021
1 parent e011c3e commit aa740c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def get_doc(observation_id)
cookie_value = ENV['COOKIE_VALUE']
options = { 'headers': { 'Cookie': "#{cookie_name}=#{cookie_value}" } }
url = "#{BASE_URL}/#{observation_id}"
raw = HTTParty.get(url, options)
Nokogiri::HTML(raw)
response = HTTParty.get(url, options)
Nokogiri::HTML(response.body)
end

def get_file_name(metadata:, index:, video: false)
Expand Down

0 comments on commit aa740c5

Please sign in to comment.