Code

http plugin: Rename the “Location” option to “URL”.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Fri, 21 Aug 2009 07:21:19 +0000 (09:21 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Fri, 21 Aug 2009 07:21:19 +0000 (09:21 +0200)
That's more in line with other plugins.

src/collectd.conf.pod
src/http.c

index 936a6d7b363d673d7b4fbcf108ffd6f972d57944..7115a749a56aa11c93ab92aa5be9b07f63d660d8 100644 (file)
@@ -1193,7 +1193,7 @@ The following options are accepted by the C<http>-plugin:
 
 =over 4
 
-=item B<Location> I<http://example.com/collectd-import>
+=item B<URL> I<http://example.com/collectd-import>
 
 Set the URL location where values will be sent.
 
index 9dc7f80b1f2344becf6a7918e91a593a71b47f39..70dc080cdd06226b6f780cba5b32ac33c0eb1916 100644 (file)
@@ -38,7 +38,7 @@
  */
 static const char *config_keys[] =
 {
-        "Location", "User", "Password"
+        "URL", "User", "Password"
 };
 static int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
 
@@ -173,7 +173,7 @@ static int http_value_list_to_string (char *buffer, int buffer_len, /* {{{ */
 
 static int http_config (const char *key, const char *value) /* {{{ */
 {
-        if (strcasecmp ("Location", key) == 0)
+        if (strcasecmp ("URL", key) == 0)
         {
                 if (location != NULL)
                         free (location);