summaryrefslogtreecommitdiffstats
path: root/plugins/afm-main-plugin/afm-main-plugin.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-02-16 08:18:31 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2016-02-16 08:18:31 +0100
commit8ea2dc9f4df0a6d61e430d53d19eb0ea3633bf23 (patch)
treee0cfa945d56925da9f60f034ebe97c4b3d4515d4 /plugins/afm-main-plugin/afm-main-plugin.c
parenta0eb62f43459f17961db16256199b4bbb936d863 (diff)
afm-main-plugin: fix bug
Change-Id: Ia39f4d38b6ace8fba9731bf1f0c700487a0e8063 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'plugins/afm-main-plugin/afm-main-plugin.c')
-rw-r--r--plugins/afm-main-plugin/afm-main-plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/afm-main-plugin/afm-main-plugin.c b/plugins/afm-main-plugin/afm-main-plugin.c
index f6b44a0a..1fcc554b 100644
--- a/plugins/afm-main-plugin/afm-main-plugin.c
+++ b/plugins/afm-main-plugin/afm-main-plugin.c
@@ -157,7 +157,7 @@ static struct json_object *call_start(AFB_request *request, AFB_PostItem *item)
free(query);
/* embed if needed */
- if (json_object_get_type(resp) == json_type_string)
+ if (json_object_get_type(resp) == json_type_int)
resp = embed(request, _runid_, resp);
request->errcode = resp ? MHD_HTTP_OK : MHD_HTTP_FAILED_DEPENDENCY;
return resp;