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 /plugins/samples/SamplePost.c | |
parent | c0453c34a58aac8150300ab829149a0ca4d9e5ee (diff) |
improves file handling
Change-Id: I285cb6333d939a8afed07d8388d1d7850e50fe28
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'plugins/samples/SamplePost.c')
-rw-r--r-- | plugins/samples/SamplePost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/samples/SamplePost.c b/plugins/samples/SamplePost.c index aab54e91..58a2a8b8 100644 --- a/plugins/samples/SamplePost.c +++ b/plugins/samples/SamplePost.c @@ -31,8 +31,8 @@ static int fillargs(json_object *args, struct afb_arg arg) obj = json_object_new_object(); json_object_object_add (obj, "value", json_object_new_string(arg.value)); + json_object_object_add (obj, "path", json_object_new_string(arg.path)); json_object_object_add (obj, "size", json_object_new_int64((int64_t)arg.size)); - json_object_object_add (obj, "is_file", json_object_new_boolean(arg.is_file)); json_object_object_add (args, arg.name && *arg.name ? arg.name : "<empty-string>", obj); return 1; /* continue to iterate */ } |