[Libosinfo] [libosinfo PATCH 2/2] Revert "tests: test-mediauris: skip non-http URLs"

Pino Toscano ptoscano at redhat.com
Mon Aug 7 16:18:35 UTC 2017


Now that test-mediauris uses libcurl, it can handle protocols different
than http(s), like ftp, just fine.

This reverts commit 4c9c7185475a9739af51a9fc680e5b8a97055467.
---
 tests/test-mediauris.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/test-mediauris.c b/tests/test-mediauris.c
index 366136f..52d1e1c 100644
--- a/tests/test-mediauris.c
+++ b/tests/test-mediauris.c
@@ -38,8 +38,7 @@ static void test_media(OsinfoMediaList *medialist, GError **error, CURL *curl)
         CURLcode res;
         long response_code;
 
-        if (url == NULL || g_str_equal(url, "") ||
-            (!g_str_has_prefix(url, "http://") && !g_str_has_prefix(url, "https://"))) {
+        if (url == NULL || g_str_equal(url, "")) {
             tmp = tmp->next;
             continue;
         }
-- 
2.13.4




More information about the Libosinfo mailing list