X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnginx.c;h=a73e4d24c822a9afd1efb4cd2fd644fced03a8d7;hb=a7aec0ae6160be6aa6b1b2b06574bb0dd47497f2;hp=f1f3f99c38e684a3e669e109701cad3909054aed;hpb=b0c32ea6b670877e573913139f05d5c110e50861;p=collectd.git diff --git a/src/nginx.c b/src/nginx.c index f1f3f99c..a73e4d24 100644 --- a/src/nginx.c +++ b/src/nginx.c @@ -143,6 +143,7 @@ static int init (void) } curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1L); + curl_easy_setopt (curl, CURLOPT_MAXREDIRS, 50L); if ((verify_peer == NULL) || IS_TRUE (verify_peer)) {