diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-04-07 00:05:11 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-04-07 00:05:11 +0200 |
commit | fc19b7d7974f9c64dffc40e180464d595a9805cd (patch) | |
tree | ef56c871e6598a441ed541ea40d555eaede44233 /src/afb-websock.c | |
parent | c0453c34a58aac8150300ab829149a0ca4d9e5ee (diff) |
improves file handling
Change-Id: I285cb6333d939a8afed07d8388d1d7850e50fe28
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-websock.c')
-rw-r--r-- | src/afb-websock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afb-websock.c b/src/afb-websock.c index cff995f2..1292d1f1 100644 --- a/src/afb-websock.c +++ b/src/afb-websock.c @@ -421,7 +421,7 @@ static struct afb_arg wsreq_get(struct afb_wsreq *wsreq, const char *name) arg.value = NULL; } arg.size = 0; - arg.is_file = 0; + arg.path = NULL; return arg; } @@ -432,7 +432,7 @@ static void wsreq_iterate(struct afb_wsreq *wsreq, int (*iterator)(void *closure struct json_object_iterator end = json_object_iter_end(wsreq->request); arg.size = 0; - arg.is_file = 0; + arg.path = NULL; while(!json_object_iter_equal(&it, &end)) { arg.name = json_object_iter_peek_name(&it); arg.value = json_object_get_string(json_object_iter_peek_value(&it)); |