Code

contextswitch plugin: Only submit if we actually did find a value.
[collectd.git] / src / apache.c
index 371e1d4b3439824a17a07d416a0080fb740c531f..a333bf2b50a7db6a6ab39d1e2eaa962ca1902f17 100644 (file)
@@ -458,6 +458,7 @@ static int init_host (apache_t *st) /* {{{ */
        }
 
        curl_easy_setopt (st->curl, CURLOPT_URL, st->url);
+       curl_easy_setopt (st->curl, CURLOPT_FOLLOWLOCATION, 1);
 
        if (st->verify_peer != 0)
        {