From eeed87f0563d3ca73ff53813418d1f9f03c81fe5 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 8 Apr 2025 11:30:17 +0200 Subject: [PATCH] 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 --- scripts/mk-ca-bundle.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.47.2