From: Minero Aoki Date: 2000-05-22T22:49:48+09:00 Subject: [ruby-talk:02929] Re: Found another /p Hi, In mail "[ruby-talk:02917] Found another /p" Dave Thomas wrote: > lib/net/http.rb: line 489 > > I think it can be safely changed to a /m I'll change it not to use both 'p' and 'm'. Thank you ! ------------------------------------------------------------------- Minero Aoki --- org.http.rb Mon May 22 18:49:22 2000 +++ http.rb Mon May 22 18:50:37 2000 @@ -486,12 +486,12 @@ line = @socket.readline break if line.empty? - m = /\A([^:]+):\s*(.*)/p.match( line ) + m = /\A([^:]+):\s*/.match( line ) unless m then raise HTTPBadResponse, 'wrong header line format' end nm = m[1] - line = m[2] + line = m.post_match if resp.key? nm then resp[nm] << ', ' << line else