X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnginx.c;h=53137a71d206dd5ec9218d9697a963a6085c8db3;hb=be99a844a40d7037a910d37a894988b807631a6e;hp=2de3633b41c6ffdc2feb1ffc64d329bca7092f9b;hpb=6e419a825c50f9c97471aba7d50521bfc7e19828;p=collectd.git diff --git a/src/nginx.c b/src/nginx.c index 2de3633b..53137a71 100644 --- a/src/nginx.c +++ b/src/nginx.c @@ -1,6 +1,7 @@ /** * collectd - src/nginx.c * Copyright (C) 2006,2007 Florian octo Forster + * Copyright (C) 2008 Sebastian Harl * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -18,6 +19,7 @@ * * Authors: * Florian octo Forster + * Sebastian Harl **/ #include "collectd.h" @@ -139,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);