mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-11 00:11:46 +00:00
xtask: only follow https redirects when fetching PngSuite (#11231)
This commit is contained in:
1 parent
ec40f3912a
commit
bbf3ad7fd0
1 file changed
+14
-1
+14
-1
@@ -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| {
|
||||
|
||||
Reference in new issue
Block a user