xtask: only follow https redirects when fetching PngSuite (#11231)

This commit is contained in:
Dylan M. Taylor authored and GitHub committed 2026-11-10 17:56:37 -05:00
1 parent ec40f3912a
commit bbf3ad7fd0
1 file changed
+14 -1
+14 -1
View File
@@ -386,7 +386,20 @@ fn fetch_pngsuite() -> Result<(), String> {
PNGSUITE_MANIFEST,
|archive| {
let mut curl = Command::new("curl");
curl.args(["-fsSL", "--retry", "3", "--max-filesize", &PNGSUITE_MAX_ARCHIVE_BYTES.to_string(), "-A", USER_AGENT, "-o", "-", PNGSUITE_URL]);
curl.args([
"-fsSL",
"--proto-redir",
"=https",
"--retry",
"3",
"--max-filesize",
&PNGSUITE_MAX_ARCHIVE_BYTES.to_string(),
"-A",
USER_AGENT,
"-o",
"-",
PNGSUITE_URL,
]);
download_pngsuite(curl, archive)
},
|archive, files| {