зеркало из https://github.com/github/ruby.git
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:
Родитель
b8f39362b2
Коммит
bdd3b79fe1
|
@ -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
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче