Merge "API Landing Page: Test landing page for all APIs"
authorStéphane Desneux <stephane.desneux@iot.bzh>
Wed, 28 Nov 2018 17:15:30 +0000 (17:15 +0000)
committerGerrit Code Review <gerrit@automotivelinux.org>
Wed, 28 Nov 2018 17:15:30 +0000 (17:15 +0000)
src/afm-binding.c

index 037c108..f4bba8a 100644 (file)
@@ -244,7 +244,7 @@ static int onappid(afb_req_t req, const char *method, const char **appid)
 
        /* get the appid if any */
        if (!wrap_json_unpack(json, "s", appid)
-        || !wrap_json_unpack(json, "{si}", _id_, appid)) {
+        || !wrap_json_unpack(json, "{ss}", _id_, appid)) {
                /* found */
                INFO("method %s called for %s", method, *appid);
                return 1;