fixed setup page not showing property after a save
parent
e02a6066f3
commit
5d3f61a1b4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue