X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnginx.c;h=53137a71d206dd5ec9218d9697a963a6085c8db3;hb=be99a844a40d7037a910d37a894988b807631a6e;hp=cea3c844c5eee6d33ee9b38071e003d196a2633a;hpb=52f41fed6e32f66f5817a82ae175fd443084f8a3;p=collectd.git diff --git a/src/nginx.c b/src/nginx.c index cea3c844..53137a71 100644 --- a/src/nginx.c +++ b/src/nginx.c @@ -141,6 +141,8 @@ static int init (void) curl_easy_setopt (curl, CURLOPT_URL, url); } + curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1); + if ((verify_peer == NULL) || (strcmp (verify_peer, "true") == 0)) { curl_easy_setopt (curl, CURLOPT_SSL_VERIFYPEER, 1);