lib/htmltoword/document.rb in htmltoword-1.1.0 vs lib/htmltoword/document.rb in htmltoword-1.1.1

- old
+ new

@@ -77,10 +77,10 @@ end unless @image_files.empty? #stream the image files into the media folder using open-uri @image_files.each do |hash| out.put_next_entry("word/media/#{hash[:filename]}") - open(hash[:url], 'rb') do |f| + URI.open(hash[:url], 'rb') do |f| out.write(f.read) end end end end