From 7a0e71c6c2ccc6e98abca5ea1c7de28053e90c02 Mon Sep 17 00:00:00 2001 From: Lukas Schauer Date: Sat, 3 Feb 2018 22:03:58 +0100 Subject: [PATCH] follow location on http get-requests --- dehydrated | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dehydrated b/dehydrated index 6ee7dc1..9b903ca 100755 --- a/dehydrated +++ b/dehydrated @@ -458,7 +458,7 @@ http_request() { statuscode="$(curl ${ip_version:-} ${CURL_OPTS} -s -w "%{http_code}" -o "${tempcont}" "${2}" -I)" curlret="${?}" elif [[ "${1}" = "get" ]]; then - statuscode="$(curl ${ip_version:-} ${CURL_OPTS} -s -w "%{http_code}" -o "${tempcont}" "${2}")" + statuscode="$(curl ${ip_version:-} ${CURL_OPTS} -L -s -w "%{http_code}" -o "${tempcont}" "${2}")" curlret="${?}" elif [[ "${1}" = "post" ]]; then statuscode="$(curl ${ip_version:-} ${CURL_OPTS} -s -w "%{http_code}" -o "${tempcont}" "${2}" -d "${3}")" -- 2.47.2