]> git.street.me.uk Git - andy/dehydrated.git/commitdiff
Revert "curl: use custom user agent"
authorLukas Schauer <lukas@schauer.so>
Sun, 29 Jan 2017 21:56:42 +0000 (22:56 +0100)
committerLukas Schauer <lukas@schauer.so>
Sun, 29 Jan 2017 21:56:42 +0000 (22:56 +0100)
This reverts commit a5fde931f8602ec1334e8ad2e3471c6c7ceeb58d.

dehydrated

index 0d1ada18c7ba58fb31136f7ab3eec4268409234e..a5789556014bddc514a64162f5089e66054fdb18 100755 (executable)
@@ -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