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 | f2a92e020ea15dc1fc1b2da4293a535aad093d94 (patch) | |
tree | a2647ff88116662237329593673e2dff3715ec04 /lib | |
parent | 8dde296c8820a79b2818fa0b2fb4f81c5c4abb9d (diff) | |
download | ruby-f2a92e020ea15dc1fc1b2da4293a535aad093d94.tar.gz ruby-f2a92e020ea15dc1fc1b2da4293a535aad093d94.tar.xz ruby-f2a92e020ea15dc1fc1b2da4293a535aad093d94.zip |
p http.rb: do not use Regexp "p" option
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@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 402169c51..643d93fcc 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 c52b9d518..fbfb254a6 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 |