Skip to content

Commit

Permalink
Use File.open for downloading files (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
selectiveduplicate authored Oct 25, 2024
1 parent 449eedf commit f43d8f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def self.get_file(url)
if not @cache.keys.include? url
@cache[url] = Tempfile.new('APIMatic')
@cache[url].binmode
@cache[url].write(open(url, {ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE}).read)
@cache[url].write(File.open(url, 'rb').read)
else
@cache[url].open
@cache[url].binmode
Expand Down

0 comments on commit f43d8f8

Please sign in to comment.