From: Lukas Schauer Date: Sat, 3 Feb 2018 21:03:58 +0000 (+0100) Subject: follow location on http get-requests X-Git-Tag: v0.6.0~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a0e71c6c2ccc6e98abca5ea1c7de28053e90c02;p=thirdparty%2Fdehydrated.git follow location on http get-requests --- 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}")"