From 9f8152e39312371ecc6b740124ef74244ffda56d Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sat, 23 Nov 2019 19:40:37 +0100 Subject: [PATCH] Don't send ID field, it is not neded by the client. And even if it would be, it could easily be computed from nextID. Signed-off-by: DL6ER --- src/api/ftl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/api/ftl.c b/src/api/ftl.c index 62f3ee42..a210ac66 100644 --- a/src/api/ftl.c +++ b/src/api/ftl.c @@ -98,7 +98,6 @@ int api_ftl_dnsmasq_log(struct mg_connection *conn) } cJSON *entry = JSON_NEW_OBJ(); - JSON_OBJ_ADD_NUMBER(entry, "id", idx); JSON_OBJ_ADD_NUMBER(entry, "timestamp", dnsmasq_log_stamps[i]); JSON_OBJ_REF_STR(entry, "message", dnsmasq_log_messages[i]); JSON_ARRAY_ADD_ITEM(log, entry);