diff options
| author | 2022-03-19 21:48:07 -0400 | |
|---|---|---|
| committer | 2022-03-19 21:48:07 -0400 | |
| commit | a6e765da9b4da8cf9ddedcbaeb29fe5dca5df263 (patch) | |
| tree | 39a2e5d06c16d048e9618e1170e3b6304fbade2e /lib/roo/base.rb | |
| parent | e67f4551479264125a641b955523d95e192b6d44 (diff) | |
| parent | f5fb17e5a64b215644bc104f099dad8c2f10c37d (diff) | |
Update upstream source from tag 'upstream/2.9.0'
Update to upstream version '2.9.0'
with Debian dir 41b8f9c552bbf25b076de11901d6f615d684366f
Diffstat (limited to 'lib/roo/base.rb')
| -rw-r--r-- | lib/roo/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/roo/base.rb b/lib/roo/base.rb index 19eb844..f4ac9a3 100644 --- a/lib/roo/base.rb +++ b/lib/roo/base.rb @@ -544,7 +544,7 @@ class Roo::Base tempfilename = File.join(tmpdir, find_basename(uri)) begin File.open(tempfilename, "wb") do |file| - open(uri, "User-Agent" => "Ruby/#{RUBY_VERSION}") do |net| + URI.open(uri, "User-Agent" => "Ruby/#{RUBY_VERSION}") do |net| file.write(net.read) end end |
