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:
parent
b8f39362b2
commit
bdd3b79fe1
2 changed files with 3 additions and 3 deletions
|
@ -486,12 +486,12 @@ All "key" is case-insensitive.
|
||||||
line = @socket.readline
|
line = @socket.readline
|
||||||
break if line.empty?
|
break if line.empty?
|
||||||
|
|
||||||
m = /\A([^:]+):\s*(.*)/p.match( line )
|
m = /\A([^:]+):\s*/.match( line )
|
||||||
unless m then
|
unless m then
|
||||||
raise HTTPBadResponse, 'wrong header line format'
|
raise HTTPBadResponse, 'wrong header line format'
|
||||||
end
|
end
|
||||||
nm = m[1]
|
nm = m[1]
|
||||||
line = m[2]
|
line = m.post_match
|
||||||
if resp.key? nm then
|
if resp.key? nm then
|
||||||
resp[nm] << ', ' << line
|
resp[nm] << ', ' << line
|
||||||
else
|
else
|
||||||
|
|
|
@ -68,7 +68,7 @@ Object
|
||||||
|
|
||||||
class Protocol
|
class Protocol
|
||||||
|
|
||||||
Version = '1.1.18'
|
Version = '1.1.19'
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue