summaryrefslogtreecommitdiffstats
path: root/plugins/samples/SamplePost.c
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2015-12-22 23:09:04 +0100
committerFulup Ar Foll <fulup@iot.bzh>2015-12-22 23:09:04 +0100
commit00857f9da5ae802794a4cb94aca576b11bfe6628 (patch)
treefb17939c9488de74e345bd5cc68a94b8894b8968 /plugins/samples/SamplePost.c
parent1398adf363c182f25603f7d0c1ff52c5be8267b2 (diff)
New Session Model [compile but not tested]
Diffstat (limited to 'plugins/samples/SamplePost.c')
-rw-r--r--plugins/samples/SamplePost.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/samples/SamplePost.c b/plugins/samples/SamplePost.c
index 53d065ae..beadb774 100644
--- a/plugins/samples/SamplePost.c
+++ b/plugins/samples/SamplePost.c
@@ -48,7 +48,8 @@ STATIC json_object* UploadAppli (AFB_request *request, AFB_PostItem *item) {
// This is called after PostForm and then after DonePostForm
if (item == NULL) {
AFB_PostCtx *postFileCtx = getPostContext(request);
- if (postFileCtx != NULL) {
+ if (postFileCtx != NULL) {
+
// Do something intelligent here to install application
postFileCtx->errcode = MHD_HTTP_OK; // or error is something went wrong;