mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-12-24 12:14:23 +08:00
https://github.com/acmesh-official/acme.sh/issues/4483#issuecomment-1414460122
This commit is contained in:
9
acme.sh
9
acme.sh
@@ -1856,10 +1856,11 @@ _inithttp() {
|
||||
_ACME_CURL="$_ACME_CURL -g "
|
||||
fi
|
||||
|
||||
#from curl 7.76: return fail on HTTP errors but keep the body
|
||||
if _contains "$(curl --help http 2>&1)" "--fail-with-body"; then
|
||||
_ACME_CURL="$_ACME_CURL --fail-with-body "
|
||||
fi
|
||||
# don't use --fail-with-body
|
||||
##from curl 7.76: return fail on HTTP errors but keep the body
|
||||
#if _contains "$(curl --help http 2>&1)" "--fail-with-body"; then
|
||||
# _ACME_CURL="$_ACME_CURL --fail-with-body "
|
||||
#fi
|
||||
fi
|
||||
|
||||
if [ -z "$_ACME_WGET" ] && _exists "wget"; then
|
||||
|
||||
Reference in New Issue
Block a user