fixed setup page not showing property after a save

master
Kenneth Barbour 2020-06-14 16:26:24 -04:00
parent e02a6066f3
commit 5d3f61a1b4
1 changed files with 2 additions and 2 deletions

View File

@ -197,9 +197,9 @@ void handle_config_set(HttpRequest& req, HttpResponse& res)
// return json object with property
char buff[64];
if (is_str) {
sprintf(buff, "{\"%s\": \"%s\"}", key, value);
sprintf(buff, "{\"property\": \"%s\", \"value\": \"%s\"}", key, value);
} else {
sprintf(buff, "{\"%s\": %s}", key, value);
sprintf(buff, "{\"property\": \"%s\", \"value\": %s}", key, value);
}
res.headers.set("Content-Type", "application/json");
content.print(buff);