1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.25.

* lib/net/protocol.rb (each_crlf_line): beg = 0 is needed in adding{}
* lib/net/smtp.rb: allow String for to_addr of SMTP#sendmail


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
aamine 2000-07-01 18:28:24 +00:00
parent 951d81cab8
commit 5eccd28bb3
2 changed files with 16 additions and 10 deletions

View file

@ -64,7 +64,7 @@ module Net
class Protocol
Version = '1.1.24'
Version = '1.1.25'
class << self
@ -664,10 +664,10 @@ module Net
end
def each_crlf_line( src )
str = m = nil
beg = 0
str = m = beg = nil
adding( src ) do
beg = 0
buf = @wbuf
while buf.index( /\n|\r\n|\r/, beg ) do
m = $~