diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-22 13:39:24 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-22 13:39:24 +0000 |
commit | ba969ada20c03eafbd0fd33169e1b0e26f067ccf (patch) | |
tree | a768e690abd1f2804e7009f04160641ec01e0d6d /lib | |
parent | 46fc347673a09ecd5a2a42dbd37af05f6ffec2bd (diff) |
p http.rb: do not use Regexp "p" option
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/http.rb | 4 | ||||
-rw-r--r-- | 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 |