mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
Revert "temporary workaround for PECL certificate expiration"
This reverts commit 7c78003c9f2223b00a53e5274afba2c6f0e1c5db.
This commit is contained in:
parent
4bfca6fe93
commit
1a32ddc70a
@ -395,7 +395,7 @@ class Downloader
|
|||||||
};
|
};
|
||||||
$headerArg = implode(' ', array_map(fn ($v) => '"-H' . $v . '"', $headers));
|
$headerArg = implode(' ', array_map(fn ($v) => '"-H' . $v . '"', $headers));
|
||||||
$check = !defined('DEBUG_MODE') ? 's' : '#';
|
$check = !defined('DEBUG_MODE') ? 's' : '#';
|
||||||
$cmd = "curl -{$check}fSLk -o \"{$path}\" {$methodArg} {$headerArg} \"{$url}\"";
|
$cmd = "curl -{$check}fSL -o \"{$path}\" {$methodArg} {$headerArg} \"{$url}\"";
|
||||||
f_passthru($cmd);
|
f_passthru($cmd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user