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 ++-- lib/net/protocol.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index c52b9d5184..fbfb254a66 100644 --- a/lib/net/protocol.rb +++ b/lib/net/protocol.rb @@ -68,7 +68,7 @@ Object class Protocol - Version = '1.1.18' + Version = '1.1.19' class << self -- cgit v1.2.3