From a4411c818408f4e4eececc85b4856db07036fd29 Mon Sep 17 00:00:00 2001 From: Yang Liu Date: Mon, 8 Mar 2021 09:57:02 +0800 Subject: [PATCH] fix curl -I will send HEAD request --- acme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index 757ed7a5..bdc1bfcf 100755 --- a/acme.sh +++ b/acme.sh @@ -1942,7 +1942,7 @@ _get() { fi _debug "_CURL" "$_CURL" if [ "$onlyheader" ]; then - $_CURL -I --user-agent "$USER_AGENT" -H "$_H1" -H "$_H2" -H "$_H3" -H "$_H4" -H "$_H5" "$url" + $_CURL -X GET -I --user-agent "$USER_AGENT" -H "$_H1" -H "$_H2" -H "$_H3" -H "$_H4" -H "$_H5" "$url" else $_CURL --user-agent "$USER_AGENT" -H "$_H1" -H "$_H2" -H "$_H3" -H "$_H4" -H "$_H5" "$url" fi