From e47466061f2215b84f3b4d4be1a525b4752e042b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= Date: Sat, 8 Oct 2022 19:36:19 -0400 Subject: Tell CURL to follow http redirect - This is issue https://github.com/flathub/org.flatpak.Builder/issues/108 and https://github.com/flathub/org.flatpak.Builder/issues/112 --- client/as-util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/as-util.c b/client/as-util.c index ce973ed..87ec1e3 100644 --- a/client/as-util.c +++ b/client/as-util.c @@ -3447,6 +3447,7 @@ as_util_mirror_screenshots_app_url (AsUtilPrivate *priv, } (void)curl_easy_setopt(priv->curl, CURLOPT_URL, url); (void)curl_easy_setopt(priv->curl, CURLOPT_ERRORBUFFER, errbuf); + (void)curl_easy_setopt(priv->curl, CURLOPT_FOLLOWLOCATION, 1); (void)curl_easy_setopt(priv->curl, CURLOPT_WRITEFUNCTION, as_util_download_write_callback_cb); -- cgit v1.2.1