]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
mk-ca-bundle.pl: follow redirects
authorDaniel Stenberg <daniel@haxx.se>
Tue, 8 Apr 2025 09:30:17 +0000 (11:30 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 8 Apr 2025 09:47:05 +0000 (11:47 +0200)
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

index 8e8afb4dd74b9abb9a8c182c287d8e4a52007f02..56457afb1c9fad0a6d845358a254ffda147bdb10 100755 (executable)
@@ -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";