Project

General

Profile

Backport #7278 ยป 0001-lib-net-protocol.rb-Suppress-warning-message.patch

kakutani (Shintaro KAKUTANI), 11/05/2012 09:45 AM

View differences:

lib/net/protocol.rb
def each_crlf_line(src)
buffer_filling(@wbuf, src) do
@wbuf.force_encoding('ASCII-8BIT')
while line = @wbuf.slice!(/\A.*(?:\n|\r\n|\r(?!\z))/n)
yield line.chomp("\n") + "\r\n"
end
    (1-1/1)