diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-13 21:19:11 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-13 21:19:11 -0400 |
commit | 90a44417bb18ef3bfd5cf6c028a47add217fb339 (patch) | |
tree | b7b5b5bc8b3b73696ad4f0749c6b9f1f9344e553 /response.c | |
parent | 0b3ae523971cd3bfae93dbffe202285e5a435520 (diff) |
better newline formatting of responses
Diffstat (limited to 'response.c')
-rw-r--r-- | response.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -95,9 +95,9 @@ static void writeOutput(GPollableOutputStream* stream, gchar* data) gchar *terminated; if (data==NULL) { - terminated = g_strdup("\r\n"); + terminated = g_strdup(""); } else if (!strlen(data)) { - terminated = g_strdup("> "); + terminated = g_strdup("\r\n> "); } else { terminated = g_strdup_printf ("%s\r\n", data); } |