diff --git a/src/nginx.c b/src/nginx.c
index b76f25b360ba6bf1771519f34f044c134ff98c32..7568a2c5ee2ded6439b6eb24927d64bb1b503e4a 100644 (file)
--- a/src/nginx.c
+++ b/src/nginx.c
}
curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1L);
+ curl_easy_setopt (curl, CURLOPT_MAXREDIRS, 50L);
if ((verify_peer == NULL) || IS_TRUE (verify_peer))
{
return (-1);
nginx_buffer_len = 0;
- if (curl_easy_perform (curl) != 0)
+ if (curl_easy_perform (curl) != CURLE_OK)
{
WARNING ("nginx plugin: curl_easy_perform failed: %s", nginx_curl_error);
return (-1);