1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
aamine 2000-05-22 13:39:24 +00:00
parent b8f39362b2
commit bdd3b79fe1
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -68,7 +68,7 @@ Object
class Protocol
Version = '1.1.18'
Version = '1.1.19'
class << self