X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcurl.c;h=d3c307e4346b0edf0c18a9bb12a3d0d5a1d42f44;hb=bf90793e82989b1c36fe8f3b66b9c9fe05c9532d;hp=88b5496d4a4b5f317fc3a0ead52cdaf3aec9c5f3;hpb=c57f2a191b63ce73fc432befebe9fa3af97c8eb5;p=collectd.git diff --git a/src/curl.c b/src/curl.c index 88b5496d..d3c307e4 100644 --- a/src/curl.c +++ b/src/curl.c @@ -346,6 +346,7 @@ static int cc_page_init_curl (web_page_t *wp) /* {{{ */ PACKAGE_NAME"/"PACKAGE_VERSION); curl_easy_setopt (wp->curl, CURLOPT_ERRORBUFFER, wp->curl_errbuf); curl_easy_setopt (wp->curl, CURLOPT_URL, wp->url); + curl_easy_setopt (wp->curl, CURLOPT_FOLLOWLOCATION, 1); if (wp->user != NULL) {