mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-10-21 21:31:51 +00:00
improve wget --content-on-error condition
This commit is contained in:
1 parent
0cafc00c4f
commit
057c95bd1c
1 file changed
+4
-4
@@ -1877,11 +1877,11 @@ _inithttp() {
|
|||||||
elif [ "$CA_BUNDLE" ]; then
|
elif [ "$CA_BUNDLE" ]; then
|
||||||
_ACME_WGET="$_ACME_WGET --ca-certificate=$CA_BUNDLE "
|
_ACME_WGET="$_ACME_WGET --ca-certificate=$CA_BUNDLE "
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
#from wget 1.14: do not skip body on 404 error
|
#from wget 1.14: do not skip body on 404 error
|
||||||
if [ "$_ACME_WGET" ] && _contains "$($_ACME_WGET --help 2>&1)" "--content-on-error"; then
|
if _contains "$(wget --help 2>&1)" "--content-on-error"; then
|
||||||
_ACME_WGET="$_ACME_WGET --content-on-error "
|
_ACME_WGET="$_ACME_WGET --content-on-error "
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
__HTTP_INITIALIZED=1
|
__HTTP_INITIALIZED=1
|
||||||
|
|||||||