*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6f4751f5f6
commit
6d36661c5e
@ -1,7 +1,7 @@
|
||||
## ftplib.rb
|
||||
|
||||
# Author: Shugo Maeda <shugo@po.aianet.ne.jp>
|
||||
# Version: $Revision: 1.7 $
|
||||
# Author: Shugo Maeda <shugo@netlab.co.jp>
|
||||
# Version: 1.7.1
|
||||
|
||||
## Code:
|
||||
|
||||
@ -15,9 +15,6 @@ class FTPPermError < FTPError; end
|
||||
class FTPProtoError < FTPError; end
|
||||
|
||||
class FTP
|
||||
|
||||
RCS_ID = %q$Id: ftplib.rb,v 1.7 1998/04/13 12:34:24 shugo Exp shugo $
|
||||
|
||||
include MonitorMixin
|
||||
|
||||
FTP_PORT = 21
|
||||
@ -311,7 +308,7 @@ class FTP
|
||||
buf = file.gets
|
||||
break if buf == nil
|
||||
if buf[-2, 2] != CRLF
|
||||
buf = buf.chop + CRLF
|
||||
buf = buf.chomp + CRLF
|
||||
end
|
||||
conn.write(buf)
|
||||
callback.call(buf) if use_callback
|
||||
|
Loading…
x
Reference in New Issue
Block a user