From bdd3b79fe1ea00530c1a0d69ef1d8c5ec404b2da Mon Sep 17 00:00:00 2001 From: aamine Date: Mon, 22 May 2000 13:39:24 +0000 Subject: p http.rb: do not use Regexp "p" option git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/http.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/net/http.rb') diff --git a/lib/net/http.rb b/lib/net/http.rb index 402169c511..643d93fcc7 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -486,12 +486,12 @@ All "key" is case-insensitive. 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 -- cgit v1.2.3