summaryrefslogtreecommitdiff
path: root/lib/net
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-22 13:39:24 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-22 13:39:24 +0000
commitbdd3b79fe1ea00530c1a0d69ef1d8c5ec404b2da (patch)
treea2647ff88116662237329593673e2dff3715ec04 /lib/net
parentb8f39362b29f3b2f4a34d3b4b24c05edc9612854 (diff)
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
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/http.rb4
-rw-r--r--lib/net/protocol.rb2
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