X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Frest-api.c;h=12f4a448c4f0f0f13e5ae7c35ddb8ad7fc318b89;hb=12c224a9684d2d78dfe238504c1b1d849d591c1c;hp=a62a88bda9625444489a07d7e5ca0f460056df7b;hpb=fc0da145ff8e9b8cea1c40fa3025596fb8ffaae8;p=src%2Fapp-framework-binder.git diff --git a/src/rest-api.c b/src/rest-api.c index a62a88bd..12f4a448 100644 --- a/src/rest-api.c +++ b/src/rest-api.c @@ -29,6 +29,8 @@ #define AFB_MSG_JTYPE "AJB_reply" +#define JSON_CONTENT "application/json" +#define FORM_CONTENT "multipart/form-data" /* TODO: replace with MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA */ static json_object *afbJsonType; @@ -69,7 +71,7 @@ STATIC AFB_error callPluginApi(AFB_request *request, int plugidx, void *context) sigaddset (&sigset, signum); sigprocmask (SIG_UNBLOCK, &sigset, 0); - fprintf (stderr, "Oops:%s Plugin Api Timeout timeout\n", configTime()); + fprintf (stderr, "Oops: Plugin Api Timeout timeout\n"); longjmp (request->checkPluginCall, signum); } @@ -663,3 +665,4 @@ void initPlugins(AFB_session *session) { session->plugins = RegisterJsonPlugins(plugins); session->config->pluginCount = count; } +