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
322 322

  
323 323
    def each_crlf_line(src)
324 324
      buffer_filling(@wbuf, src) do
325
        @wbuf.force_encoding('ASCII-8BIT')
325 326
        while line = @wbuf.slice!(/\A.*(?:\n|\r\n|\r(?!\z))/n)
326 327
          yield line.chomp("\n") + "\r\n"
327 328
        end
328
-