kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit e712e3a9517f5dae027e9607cf20d83fb98a2d89
parent 8008fe8b6046cf01612a656327e89a53ee46f3ae
Author: Joris Vink <joris@coders.se>
Date:   Thu, 19 Nov 2020 09:22:16 +0100

consume any initial whitespace in JSON data.

Diffstat:
src/json.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/json.c b/src/json.c @@ -83,6 +83,8 @@ kore_json_parse(struct kore_json *json) if (json->root) return (KORE_RESULT_OK); + json_consume_whitespace(json); + if (!json_peek(json, &ch)) return (KORE_RESULT_ERROR);