mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-14 10:20:01 +00:00
Panel fix
This commit is contained in:
1 parent
8030f8f8b5
commit
5163d8a1c7
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -3250,7 +3250,7 @@ static inline bool mg_parse_field(struct mg_str json, struct mg_field *f,
|
||||
} else if (f->type == MG_VAL_DBL) {
|
||||
ok = mg_json_get_num(json, "$", &val->d);
|
||||
} else if (f->type == MG_VAL_STR) {
|
||||
val->s = trimq(json);
|
||||
val->s = json;
|
||||
} else if (f->type == MG_VAL_FN) {
|
||||
val->s = json;
|
||||
}
|
||||
|
||||
+1
-1
@@ -112,7 +112,7 @@ static inline bool mg_parse_field(struct mg_str json, struct mg_field *f,
|
||||
} else if (f->type == MG_VAL_DBL) {
|
||||
ok = mg_json_get_num(json, "$", &val->d);
|
||||
} else if (f->type == MG_VAL_STR) {
|
||||
val->s = trimq(json);
|
||||
val->s = json;
|
||||
} else if (f->type == MG_VAL_FN) {
|
||||
val->s = json;
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ static void location_get(union mg_val *val) {
|
||||
val->s = mg_str(s_location);
|
||||
}
|
||||
static void location_set(const union mg_val *val) {
|
||||
mg_json_unescape(val->s, s_location, sizeof(s_location));
|
||||
mg_json_unescape(val->s, "$", s_location, sizeof(s_location));
|
||||
}
|
||||
|
||||
static void threshold_get(union mg_val *val) {
|
||||
|
||||
Reference in new issue
Block a user