From 943b990dd8dd36c603688e8493abf71bad60bf5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= Date: Sun, 9 Oct 2022 16:33:41 -0400 Subject: Tell CURL to follow http redirect for validate - This is a followup on https://github.com/hughsie/appstream-glib/pull/460 - This is issue https://github.com/flathub/org.flatpak.Builder/issues/112 --- libappstream-glib/as-app-validate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libappstream-glib/as-app-validate.c b/libappstream-glib/as-app-validate.c index a11c361..73382de 100644 --- a/libappstream-glib/as-app-validate.c +++ b/libappstream-glib/as-app-validate.c @@ -465,6 +465,7 @@ ai_app_validate_image_check (AsImage *im, AsAppValidateHelper *helper) url = as_image_get_url (im); g_debug ("checking %s", url); (void)curl_easy_setopt(helper->curl, CURLOPT_URL, url); + (void)curl_easy_setopt(helper->curl, CURLOPT_FOLLOWLOCATION, 1); (void)curl_easy_setopt(helper->curl, CURLOPT_ERRORBUFFER, errbuf); (void)curl_easy_setopt(helper->curl, CURLOPT_WRITEFUNCTION, -- cgit v1.2.1