diff options
author | Hubert Figuière <hub@figuiere.net> | 2022-10-09 16:33:41 -0400 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2022-10-10 07:05:35 +0100 |
commit | 943b990dd8dd36c603688e8493abf71bad60bf5f (patch) | |
tree | a34f471d29b892c578cda3cf6611485ef6f29f1f | |
parent | e47466061f2215b84f3b4d4be1a525b4752e042b (diff) | |
download | appstream-glib-943b990dd8dd36c603688e8493abf71bad60bf5f.tar.gz |
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
-rw-r--r-- | libappstream-glib/as-app-validate.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, |