append --fail-with-body argument to curl if supported

This commit is contained in:
PMExtra committed 2022-12-23 17:22:12 +08:00
1 parent 75d2898efd
commit 0cafc00c4f
1 file changed
+5
+5
View File
@@ -1855,6 +1855,11 @@ _inithttp() {
if _contains "$(curl --help 2>&1)" "--globoff"; then
_ACME_CURL="$_ACME_CURL -g "
fi
#from curl 7.76: return fail on HTTP errors but keep the body
if [ "$_ACME_CURL" ] && _contains "$($_ACME_CURL --help http)" "--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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.