зеркало из https://github.com/github/ruby.git
Suppress warnings: Net::HTTPResponse#header is obsolete
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
7391ae231a
Коммит
89c88eb5a9
|
@ -12,8 +12,8 @@ Connection: close
|
|||
hello
|
||||
EOS
|
||||
res = Net::HTTPResponse.read_new(io)
|
||||
assert_equal('5', res.header['content-length'])
|
||||
assert_equal('close', res.header['connection'])
|
||||
assert_equal('5', res['content-length'])
|
||||
assert_equal('close', res['connection'])
|
||||
end
|
||||
|
||||
def test_multiline_header
|
||||
|
@ -28,8 +28,8 @@ X-Bar:
|
|||
hello
|
||||
EOS
|
||||
res = Net::HTTPResponse.read_new(io)
|
||||
assert_equal('XXX YYY', res.header['x-foo'])
|
||||
assert_equal('XXX YYY', res.header['x-bar'])
|
||||
assert_equal('XXX YYY', res['x-foo'])
|
||||
assert_equal('XXX YYY', res['x-bar'])
|
||||
end
|
||||
|
||||
def test_read_body
|
||||
|
|
Загрузка…
Ссылка в новой задаче