From: Daniel Stenberg Date: Tue, 8 Apr 2025 09:30:17 +0000 (+0200) Subject: mk-ca-bundle.pl: follow redirects X-Git-Tag: curl-8_14_0~339 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeed87f0563d3ca73ff53813418d1f9f03c81fe5;p=thirdparty%2Fcurl.git mk-ca-bundle.pl: follow redirects The Mozilla hosted files have started to redirect. Follow them to restore script functionality. Reported-by: Harry Sintonen Closes #16995 --- diff --git a/scripts/mk-ca-bundle.pl b/scripts/mk-ca-bundle.pl index 8e8afb4dd7..56457afb1c 100755 --- a/scripts/mk-ca-bundle.pl +++ b/scripts/mk-ca-bundle.pl @@ -318,7 +318,7 @@ if(!$opt_n) { report "Get certdata with curl!"; my $proto = !$opt_k ? "--proto =https" : ""; my $quiet = $opt_q ? "-s" : ""; - my @out = `curl -w %{response_code} $proto $quiet -o "$txt" "$url"`; + my @out = `curl -Lw %{response_code} $proto $quiet -o "$txt" "$url"`; if(!$? && @out && $out[0] == 200) { $fetched = 1; report "Downloaded $txt";