Skip to content

Commit 84220a2

Browse files
authored
Patch Curl to no longer use -k (#3091)
* Update externals.sh * Update externals.sh
1 parent 8e0cd36 commit 84220a2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Misc/externals.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,16 @@ function acquireExternalTool() {
6363
echo "Curl version: $CURL_VERSION"
6464

6565
# curl -f Fail silently (no output at all) on HTTP errors (H)
66-
# -k Allow connections to SSL sites without certs (H)
6766
# -S Show error. With -s, make curl show errors when they occur
6867
# -L Follow redirects (H)
6968
# -o FILE Write to FILE instead of stdout
7069
# --retry 3 Retries transient errors 3 times (timeouts, 5xx)
7170
if [[ "$(printf '%s\n' "7.71.0" "$CURL_VERSION" | sort -V | head -n1)" != "7.71.0" ]]; then
7271
# Curl version is less than or equal to 7.71.0, skipping retry-all-errors flag
73-
curl -fkSL --retry 3 -o "$partial_target" "$download_source" 2>"${download_target}_download.log" || checkRC 'curl'
72+
curl -fSL --retry 3 -o "$partial_target" "$download_source" 2>"${download_target}_download.log" || checkRC 'curl'
7473
else
7574
# Curl version is greater than 7.71.0, running curl with --retry-all-errors flag
76-
curl -fkSL --retry 3 --retry-all-errors -o "$partial_target" "$download_source" 2>"${download_target}_download.log" || checkRC 'curl'
75+
curl -fSL --retry 3 --retry-all-errors -o "$partial_target" "$download_source" 2>"${download_target}_download.log" || checkRC 'curl'
7776
fi
7877

7978
# Move the partial file to the download target.

0 commit comments

Comments
 (0)