From 6d746e89a3bf3b9a4674ade30b88482d9f27463b Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Mon, 19 Oct 2009 15:21:39 +0200 Subject: [PATCH] Workaround for buggy libykclient libykclient requires that parameters come in a particular order, contrary to what the spec says. Reorder parameters in order to not break it. --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 6a44536..9cc0cd9 100644 --- a/src/main.c +++ b/src/main.c @@ -148,15 +148,15 @@ static int send_response(struct MHD_Connection *conn, if (signature) { t += sprintf(t, "h=%s\n", signature); } - if (status) { - t += sprintf(t, "status=%s\n", status); - } if (info) { t += sprintf(t, "info=%s\n", info); } if (timestamp) { t += sprintf(t, "timestamp=%s\n", timestamp); } + if (status) { + t += sprintf(t, "status=%s\n", status); + } /* XXX error checking above */ response = MHD_create_response_from_data(strlen(resp_text), resp_text, -- 2.39.5