X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcurl.c;h=abf45c23d2c7990077295a0c130c3ecd358bf498;hb=91743fc0c8785f84f3976d5f5d430b1b3a7d4918;hp=9c2c54005cbbc0d7730543d8b1931c3e902dc770;hpb=6f42db1a14f449f99963191f372c61d418bc8a08;p=collectd.git diff --git a/src/curl.c b/src/curl.c index 9c2c5400..abf45c23 100644 --- a/src/curl.c +++ b/src/curl.c @@ -370,6 +370,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) {