Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
work in progress
[src/app-framework-binder.git]
/
src
/
http-svc.c
diff --git
a/src/http-svc.c
b/src/http-svc.c
index
706abbc
..
9235bf8
100644
(file)
--- a/
src/http-svc.c
+++ b/
src/http-svc.c
@@
-16,12
+16,17
@@
*/
#define _GNU_SOURCE
*/
#define _GNU_SOURCE
-#include <microhttpd.h>
+
+#include <stdio.h>
+#include <string.h>
#include <assert.h>
#include <poll.h>
#include <assert.h>
#include <poll.h>
+#include <fcntl.h>
#include <sys/stat.h>
#include <sys/stat.h>
-#include "../include/local-def.h"
+#include <microhttpd.h>
+
+#include "local-def.h"
#include "afb-method.h"
#include "afb-hreq.h"
#include "afb-websock.h"
#include "afb-method.h"
#include "afb-hreq.h"
#include "afb-websock.h"
@@
-146,7
+151,7
@@
static struct AFB_clientCtx *afb_hreq_context(struct afb_hreq *hreq)
uuid = afb_hreq_get_argument(hreq, uuid_arg);
if (uuid == NULL)
uuid = afb_hreq_get_cookie(hreq, uuid_cookie);
uuid = afb_hreq_get_argument(hreq, uuid_arg);
if (uuid == NULL)
uuid = afb_hreq_get_cookie(hreq, uuid_cookie);
- hreq->context =
_
ctxClientGet(uuid);
+ hreq->context = ctxClientGet(uuid);
}
return hreq->context;
}
}
return hreq->context;
}