*** 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
|
## ftplib.rb
|
||||||
|
|
||||||
# Author: Shugo Maeda <shugo@po.aianet.ne.jp>
|
# Author: Shugo Maeda <shugo@netlab.co.jp>
|
||||||
# Version: $Revision: 1.7 $
|
# Version: 1.7.1
|
||||||
|
|
||||||
## Code:
|
## Code:
|
||||||
|
|
||||||
@ -15,9 +15,6 @@ class FTPPermError < FTPError; end
|
|||||||
class FTPProtoError < FTPError; end
|
class FTPProtoError < FTPError; end
|
||||||
|
|
||||||
class FTP
|
class FTP
|
||||||
|
|
||||||
RCS_ID = %q$Id: ftplib.rb,v 1.7 1998/04/13 12:34:24 shugo Exp shugo $
|
|
||||||
|
|
||||||
include MonitorMixin
|
include MonitorMixin
|
||||||
|
|
||||||
FTP_PORT = 21
|
FTP_PORT = 21
|
||||||
@ -311,7 +308,7 @@ class FTP
|
|||||||
buf = file.gets
|
buf = file.gets
|
||||||
break if buf == nil
|
break if buf == nil
|
||||||
if buf[-2, 2] != CRLF
|
if buf[-2, 2] != CRLF
|
||||||
buf = buf.chop + CRLF
|
buf = buf.chomp + CRLF
|
||||||
end
|
end
|
||||||
conn.write(buf)
|
conn.write(buf)
|
||||||
callback.call(buf) if use_callback
|
callback.call(buf) if use_callback
|
||||||
|
Loading…
x
Reference in New Issue
Block a user