From 90a44417bb18ef3bfd5cf6c028a47add217fb339 Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Mon, 13 Aug 2012 21:19:11 -0400 Subject: better newline formatting of responses --- response.c | 4 ++-- 1 file 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); } -- cgit