diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-03-31 17:56:32 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-03-31 17:56:32 +0200 |
commit | 1205c90cccd3144bab24b4b5fd8dcbf0d0e6b570 (patch) | |
tree | ed8b93e852f4f7e6b1884348891e39b562eb74bb /plugins/samples/HelloWorld.c | |
parent | cc4b56b6710624c069642d1a510d0060949fe5b9 (diff) |
refactoring (in progress, tbf)
Change-Id: I8f2684a38d0894d827510d9a171ee6d5c39fb55e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'plugins/samples/HelloWorld.c')
-rw-r--r-- | plugins/samples/HelloWorld.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/samples/HelloWorld.c b/plugins/samples/HelloWorld.c index 067365dd..6c2d0cf9 100644 --- a/plugins/samples/HelloWorld.c +++ b/plugins/samples/HelloWorld.c @@ -29,11 +29,8 @@ STATIC json_object* pingSample (AFB_request *request) { len = getQueryAll (request, query, sizeof(query)); if (len == 0) strcpy (query,"NoSearchQueryList"); - // check if we have some post data - if (request->post != NULL) request->post->data="NoData"; - // return response to caller - response = jsonNewMessage(AFB_SUCCESS, "Ping Binder Daemon %d query={%s} PostData: \'%s\' ", pingcount++, query, request->post); + response = jsonNewMessage(AFB_SUCCESS, "Ping Binder Daemon %d query={%s}", pingcount++, query); if (verbose) fprintf(stderr, "%d: \n", pingcount); return (response); |