X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcurl_json.c;h=09db7866fa8bdbc3465184c6820e38e3a94ee868;hb=50c2ffd12518d1040f3bd1fee343e63af9f89d3b;hp=b79c999e2d8bf51116cf1e618a7229843c364f6d;hpb=dbeee0cfad69e701ea2665001fd9f2bce49c9489;p=collectd.git diff --git a/src/curl_json.c b/src/curl_json.c index b79c999e..09db7866 100644 --- a/src/curl_json.c +++ b/src/curl_json.c @@ -608,6 +608,8 @@ static int cj_init_curl (cj_t *db) /* {{{ */ curl_easy_setopt (db->curl, CURLOPT_USERAGENT, COLLECTD_USERAGENT); curl_easy_setopt (db->curl, CURLOPT_ERRORBUFFER, db->curl_errbuf); curl_easy_setopt (db->curl, CURLOPT_URL, db->url); + curl_easy_setopt (db->curl, CURLOPT_FOLLOWLOCATION, 1L); + curl_easy_setopt (db->curl, CURLOPT_MAXREDIRS, 50L); if (db->user != NULL) {