lib/desi/downloader.rb in desi-0.7.1 vs lib/desi/downloader.rb in desi-0.7.2

- old
+ new

@@ -21,10 +21,10 @@ raise "ERROR: File #{destination_name} already present!" if destination_name.exist? puts " * fetching release #{version} from #{@host + path}" if @verbose - File.open(destination_name, 'w') {|f| f << @client.get(path).body } + @client.get_file(path, destination_name) destination_name end end