зеркало из 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
|
||||
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
|
||||
|
|
|
@ -68,7 +68,7 @@ Object
|
|||
|
||||
class Protocol
|
||||
|
||||
Version = '1.1.18'
|
||||
Version = '1.1.19'
|
||||
|
||||
class << self
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче