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 bf689c5..30693e0 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: "