lib/ftpd/cmd_retr.rb in ftpd-0.16.0 vs lib/ftpd/cmd_retr.rb in ftpd-0.17.0

- old
+ new

@@ -11,11 +11,12 @@ path = argument syntax_error unless path path = File.expand_path(path, name_prefix) ensure_accessible path ensure_exists path - contents = file_system.read(path) - transmit_file contents + file_system.read(path) do |file| + transmit_file file + end end end end