Code Review
/
src
/
app-framework-binder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
3da6e9f
)
Allow Multiple TokenCreate when --token=""
author
Fulup Ar Foll
<fulup@iot.bzh>
Wed, 17 Feb 2016 13:42:27 +0000
(14:42 +0100)
committer
Fulup Ar Foll
<fulup@iot.bzh>
Wed, 17 Feb 2016 13:42:27 +0000
(14:42 +0100)
src/rest-api.c
patch
|
blob
|
history
diff --git
a/src/rest-api.c
b/src/rest-api.c
index
0751ede
..
c85fbea
100644
(file)
--- a/
src/rest-api.c
+++ b/
src/rest-api.c
@@
-132,7
+132,7
@@
STATIC AFB_error callPluginApi(AFB_request *request, int plugidx, void *context)
switch(plugin->apis[idx].session) {
- case AFB_SESSION_CREATE:
+ case AFB_SESSION_CREATE:
if (clientCtx->token[0] != '\0' && request->config->token[0] != '\0') {
request->errcode=MHD_HTTP_UNAUTHORIZED;
json_object_object_add(jcall, "status", json_object_new_string ("exist"));