X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbind.c;h=638877472ea43b6908729e99a36a1b1fa242a72b;hb=db37d40a9325544ca28ec33d80564d21bc18b34f;hp=3d46e51e043846cf160298973d391727f56b2371;hpb=3f0d178e58251171272a643e1667abcb9946edce;p=collectd.git diff --git a/src/bind.c b/src/bind.c index 3d46e51e..63887747 100644 --- a/src/bind.c +++ b/src/bind.c @@ -1382,6 +1382,7 @@ static int bind_init (void) /* {{{ */ curl_easy_setopt (curl, CURLOPT_USERAGENT, PACKAGE_NAME"/"PACKAGE_VERSION); curl_easy_setopt (curl, CURLOPT_ERRORBUFFER, bind_curl_error); curl_easy_setopt (curl, CURLOPT_URL, (url != NULL) ? url : BIND_DEFAULT_URL); + curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1); return (0); } /* }}} int bind_init */