diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-10 05:25:04 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-10 05:25:04 +0000 |
commit | 7391ae231a3ab09b123044648c9453df4a3dc808 (patch) | |
tree | c447d268de281644dc6fc1e21548aa8a375bb046 /test | |
parent | 33a63355a7dd650940ce24f85f2f1f685d05689a (diff) | |
download | ruby-7391ae231a3ab09b123044648c9453df4a3dc808.tar.gz |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/net/http/test_httpresponse.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/net/http/test_httpresponse.rb b/test/net/http/test_httpresponse.rb index d57614bb73..bb4b7fbd89 100644 --- a/test/net/http/test_httpresponse.rb +++ b/test/net/http/test_httpresponse.rb @@ -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) |