diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-06-08 10:13:17 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-06-08 11:49:58 +0200 |
commit | b57505f0f80f6394f04a041df6e808c857b01d4b (patch) | |
tree | 8f9d2abb6544d2a2be0890c2b959bcd680ab3a1b /src/afb-ws-json1.c | |
parent | cee4240979b3b9c4ebb877631e66157918598c3d (diff) |
Improves message formating
Change-Id: Ifde5ff73cd6a73715fd4d6fd58101d9e97a3bef4
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-ws-json1.c')
-rw-r--r-- | src/afb-ws-json1.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/afb-ws-json1.c b/src/afb-ws-json1.c index 88f9b358..c9be94d0 100644 --- a/src/afb-ws-json1.c +++ b/src/afb-ws-json1.c @@ -423,10 +423,8 @@ static void aws_emit(struct afb_ws_json1 *aws, int code, const char *id, size_t static void wsreq_reply(struct afb_wsreq *wsreq, int retcode, const char *status, const char *info, json_object *resp) { - const char *uuid = afb_context_sent_uuid(&wsreq->context); - const char *token = afb_context_sent_token(&wsreq->context); - struct json_object *reply = afb_msg_json_reply(status, info, resp, token, uuid); - aws_emit(wsreq->aws, retcode, wsreq->id, wsreq->idlen, reply, token); + struct json_object *reply = afb_msg_json_reply(status, info, resp, &wsreq->context, NULL); + aws_emit(wsreq->aws, retcode, wsreq->id, wsreq->idlen, reply, afb_context_sent_token(&wsreq->context)); } static void wsreq_fail(struct afb_wsreq *wsreq, const char *status, const char *info) |