diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-05 00:17:38 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-05 00:17:38 +0000 |
commit | e4ec6e9ec0fb58b24be00930c8c0e57342a439e3 (patch) | |
tree | 26a4152ee9cf841c239fd0ad1f38e9cf61bfa65d /lib/net/protocol.rb | |
parent | 80ab108c57e80ec25b6689c449791bd5f9cb32ce (diff) | |
download | ruby-e4ec6e9ec0fb58b24be00930c8c0e57342a439e3.tar.gz ruby-e4ec6e9ec0fb58b24be00930c8c0e57342a439e3.tar.xz ruby-e4ec6e9ec0fb58b24be00930c8c0e57342a439e3.zip |
* lib/net/smtp.rb: support automatic STARTTLS.
* lib/net/smtp.rb: check server advertisement.
* lib/net/smtp.rb: introduce new class SMTP::Response.
* lib/net/smtp.rb (getok): should not use sprintf.
* lib/net/smtp.rb (get_response): ditto.
* lib/net/protocol.rb: reduce syntax warning on 1.9.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/protocol.rb')
-rw-r--r-- | lib/net/protocol.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index 37b4269f2..cbeff4829 100644 --- a/lib/net/protocol.rb +++ b/lib/net/protocol.rb @@ -305,8 +305,8 @@ module Net # :nodoc: yield end else # generic reader - src.each do |s| - buf << s + src.each do |str| + buf << str yield if buf.size > 1024 end yield unless buf.empty? |