diff options
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 |
