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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Acked-by: Christophe Fergeau <cfergeau@xxxxxxxxxx>

On Mon, Aug 07, 2017 at 06:18:35PM +0200, Pino Toscano wrote:
> 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
> 
> _______________________________________________
> Libosinfo mailing list
> Libosinfo@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/libosinfo

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux