From: Lukas Schauer Date: Sun, 29 Jan 2017 21:56:42 +0000 (+0100) Subject: Revert "curl: use custom user agent" X-Git-Tag: v0.4.0~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=197ca8e82cbf25e4f8218cb1f7f9a0cd407fb494;p=thirdparty%2Fdehydrated.git Revert "curl: use custom user agent" This reverts commit a5fde931f8602ec1334e8ad2e3471c6c7ceeb58d. --- diff --git a/dehydrated b/dehydrated index 0d1ada1..a578955 100755 --- a/dehydrated +++ b/dehydrated @@ -360,13 +360,13 @@ http_request() { set +e if [[ "${1}" = "head" ]]; then - statuscode="$(curl ${ip_version:-} -A "dehydrated" -s -w "%{http_code}" -o "${tempcont}" "${2}" -I)" + statuscode="$(curl ${ip_version:-} -s -w "%{http_code}" -o "${tempcont}" "${2}" -I)" curlret="${?}" elif [[ "${1}" = "get" ]]; then - statuscode="$(curl ${ip_version:-} -A "dehydrated" -s -w "%{http_code}" -o "${tempcont}" "${2}")" + statuscode="$(curl ${ip_version:-} -s -w "%{http_code}" -o "${tempcont}" "${2}")" curlret="${?}" elif [[ "${1}" = "post" ]]; then - statuscode="$(curl ${ip_version:-} -A "dehydrated" -s -w "%{http_code}" -o "${tempcont}" "${2}" -d "${3}")" + statuscode="$(curl ${ip_version:-} -s -w "%{http_code}" -o "${tempcont}" "${2}" -d "${3}")" curlret="${?}" else set -e