lib/io_streams/s3/reader.rb in iostreams-0.17.2 vs lib/io_streams/s3/reader.rb in iostreams-0.17.3

- old
+ new

@@ -12,9 +12,10 @@ object = s3.bucket(options[:bucket]).object(options[:key]) begin # Since S3 download only supports a push stream, write it to a tempfile first. temp_file = Tempfile.new('rocket_job') + temp_file.binmode args[:response_target] = temp_file.to_path object.get(args) block.call(temp_file)