Backport #7278 ยป 0001-lib-net-protocol.rb-Suppress-warning-message.patch
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
|