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 <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2019-11-23 19:40:37 +01:00
parent f2aa1d25fb
commit 9f8152e393
-1
View File
@@ -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);