X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnginx.c;h=53137a71d206dd5ec9218d9697a963a6085c8db3;hb=0742dc6da5074abaf3bb27c579de12460f7db690;hp=cea3c844c5eee6d33ee9b38071e003d196a2633a;hpb=de0fdb208de123fe753c5fcf03533833777a5b4a;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);