summaryrefslogtreecommitdiff
path: root/response.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-13 21:19:11 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-13 21:19:11 -0400
commit90a44417bb18ef3bfd5cf6c028a47add217fb339 (patch)
treeb7b5b5bc8b3b73696ad4f0749c6b9f1f9344e553 /response.c
parent0b3ae523971cd3bfae93dbffe202285e5a435520 (diff)
better newline formatting of responses
Diffstat (limited to 'response.c')
-rw-r--r--response.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/response.c b/response.c
index db008dd..52cf944 100644
--- a/response.c
+++ b/response.c
@@ -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);
}