fix wget content on 404 error

This commit is contained in:
neilpang
2017-02-28 21:35:20 +08:00
parent 810c129ca9
commit 177b57e1c0
2 changed files with 8 additions and 2 deletions

View File

@@ -1485,6 +1485,11 @@ _inithttp() {
fi
fi
#from wget 1.14: do not skip body on 404 error
if [ "$_ACME_WGET" ] && _contains "$($_ACME_WGET --help)" "--content-on-error"; then
_ACME_WGET="$_ACME_WGET --content-on-error "
fi
__HTTP_INITIALIZED=1
}