diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/protocol.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index 9733d56c93..6b79f9efcc 100644 --- a/lib/net/protocol.rb +++ b/lib/net/protocol.rb @@ -322,7 +322,7 @@ module Net # :nodoc: def each_crlf_line(src) buffer_filling(@wbuf, src) do - while line = @wbuf.slice!(/\A.*(?:\n|\r\n|\r(?!\z))/n) + while line = @wbuf.slice!(/\A.*(?:\n|\r\n|\r(?!\z))/) yield line.chomp("\n") + "\r\n" end end |