Code

write_http plugin: Send ā€œ\r\nā€ line endings.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 30 Aug 2009 09:12:19 +0000 (11:12 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 30 Aug 2009 09:12:19 +0000 (11:12 +0200)
src/write_http.c

index bf689c56e72ac5d412014acc7ee1911cc5618c92..30693e02905dec643f422024bc8d5f523fdb8222 100644 (file)
@@ -304,7 +304,7 @@ static int wh_write_command (const data_set_t *ds, const value_list_t *vl, /* {{
         }
 
         command_len = (size_t) ssnprintf (command, sizeof (command),
-                        "PUTVAL %s interval=%i %s\n",
+                        "PUTVAL %s interval=%i %s\r\n",
                         key, vl->interval, values);
         if (command_len >= sizeof (command)) {
                 ERROR ("write_http plugin: Command buffer too small: "