From cba97c58d5a6b93fc2ec1d415efa602332e530d1 Mon Sep 17 00:00:00 2001 From: Trey Valenta Date: Fri, 20 Sep 2019 16:37:04 -0700 Subject: [PATCH] Pass the head option to curl When curl is using http1/1 and "-X HEAD", curl may hang on the new-nonce request from https://acme-staging-v02.api.letsencrypt.org/acme/new-nonce --- acme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index 980dc02f..a18d6239 100755 --- a/acme.sh +++ b/acme.sh @@ -1878,7 +1878,7 @@ _send_signed_request() { if [ "$ACME_NEW_NONCE" ]; then _debug2 "Get nonce with HEAD. ACME_NEW_NONCE" "$ACME_NEW_NONCE" nonceurl="$ACME_NEW_NONCE" - if _post "" "$nonceurl" "" "HEAD" "$__request_conent_type"; then + if _post "" "$nonceurl" "" "HEAD --head" "$__request_conent_type"; then _headers="$(cat "$HTTP_HEADER")" _debug2 _headers "$_headers" _CACHED_NONCE="$(echo "$_headers" | grep -i "Replay-Nonce:" | _head_n 1 | tr -d "\r\n " | cut -d ':' -f 2)"