summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--response.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/response.c b/response.c
index 11cd504..6eb748e 100644
--- a/response.c
+++ b/response.c
@@ -106,8 +106,11 @@ void responseCb(gpointer instance, GObject *arg1, gpointer user_data)
gssize len = data->size;
gssize written = 0;
- gchar* upper = g_ascii_strup(str, len);
+ // remove leading and trailing whitespace
+ g_strstrip (str);
+ // dummy response function
+ gchar* upper = g_ascii_strup(str, len);
gchar *out_string = g_strdup_printf("%s\n%s\n%s\n",upper,upper,upper);
gssize out_len = strlen (out_string);