summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Figuière <hub@figuiere.net>2022-10-08 19:36:19 -0400
committerRichard Hughes <richard@hughsie.com>2022-10-09 07:12:12 +0100
commite47466061f2215b84f3b4d4be1a525b4752e042b (patch)
tree2224de94dc0507eb3eb85a3cd68429f2aed2b75d
parent30c9e5e322da71e5b955cde43e07e60da92ee2af (diff)
downloadappstream-glib-e47466061f2215b84f3b4d4be1a525b4752e042b.tar.gz
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
-rw-r--r--client/as-util.c1
1 files changed, 1 insertions, 0 deletions
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);