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 #16995
This commit is contained in:
parent
461ebbd336
commit
eeed87f056
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user