2
0
mirror of https://github.com/curl/curl.git synced 2025-04-24 16:40:32 +08:00

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 
This commit is contained in:
Daniel Stenberg 2025-04-08 11:30:17 +02:00
parent 461ebbd336
commit eeed87f056
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

@ -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";