mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Run automatic deflate decoding only if it has zlib.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
33a63355a7
commit
7391ae231a
1 changed files with 3 additions and 3 deletions
|
|
@ -93,7 +93,7 @@ EOS
|
|||
end
|
||||
|
||||
assert_equal 'hello', body
|
||||
end
|
||||
end if Net::HTTP::HAVE_ZLIB
|
||||
|
||||
def test_read_body_content_encoding_deflate_chunked
|
||||
io = dummy_io(<<EOS)
|
||||
|
|
@ -119,7 +119,7 @@ EOS
|
|||
end
|
||||
|
||||
assert_equal 'hello', body
|
||||
end
|
||||
end if Net::HTTP::HAVE_ZLIB
|
||||
|
||||
def test_read_body_content_encoding_deflate_no_length
|
||||
io = dummy_io(<<EOS)
|
||||
|
|
@ -139,7 +139,7 @@ EOS
|
|||
end
|
||||
|
||||
assert_equal 'hello', body
|
||||
end
|
||||
end if Net::HTTP::HAVE_ZLIB
|
||||
|
||||
def test_read_body_content_encoding_deflate_content_range
|
||||
io = dummy_io(<<EOS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue