From 55c7f485672465461bb8b8a4589601c208a3d82c Mon Sep 17 00:00:00 2001 From: Todd Fisher Date: Mon, 26 Nov 2018 13:54:47 -0500 Subject: [PATCH] libcurl 7.62 seems to have changed file:// slightly to include headers when reading files? --- tests/tc_curl_easy.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/tc_curl_easy.rb b/tests/tc_curl_easy.rb index 63b43df..954d837 100644 --- a/tests/tc_curl_easy.rb +++ b/tests/tc_curl_easy.rb @@ -28,8 +28,6 @@ def test_threads c = Curl.get($TEST_URL) assert_match(/^# DO NOT REMOVE THIS COMMENT/, c.body_str) assert_match(/^# DO NOT REMOVE THIS COMMENT/, c.body) - assert_equal "", c.header_str - assert_equal "", c.head end end end @@ -41,7 +39,6 @@ def test_class_perform_01 assert_instance_of Curl::Easy, c = Curl::Easy.perform($TEST_URL) assert_match(/^# DO NOT REMOVE THIS COMMENT/, c.body_str) assert_match(/^# DO NOT REMOVE THIS COMMENT/, c.body) - assert_equal "", c.header_str end def test_class_perform_02 @@ -49,7 +46,6 @@ def test_class_perform_02 assert_instance_of Curl::Easy, c = Curl::Easy.perform($TEST_URL) { |curl| curl.on_body { |d| data << d; d.length } } assert_nil c.body_str - assert_equal "", c.header_str assert_match(/^# DO NOT REMOVE THIS COMMENT/, data) end @@ -144,7 +140,6 @@ def test_get_01 c = Curl::Easy.new($TEST_URL) assert_equal true, c.http_get assert_match(/^# DO NOT REMOVE THIS COMMENT/, c.body_str) - assert_equal "", c.header_str end def test_get_02 @@ -156,7 +151,6 @@ def test_get_02 assert_equal true, c.http_get assert_nil c.body_str - assert_equal "", c.header_str assert_match(/^# DO NOT REMOVE THIS COMMENT/, data) end