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:
be2a72e
)
Fix Cookie Size [was to small]
author
Fulup Ar Foll
<fulup@iot.bzh>
Wed, 30 Dec 2015 10:37:19 +0000
(11:37 +0100)
committer
Fulup Ar Foll
<fulup@iot.bzh>
Wed, 30 Dec 2015 10:37:19 +0000
(11:37 +0100)
src/rest-api.c
patch
|
blob
|
history
diff --git
a/src/rest-api.c
b/src/rest-api.c
index
0c44a43
..
dd5c59b
100644
(file)
--- a/
src/rest-api.c
+++ b/
src/rest-api.c
@@
-508,8
+508,8
@@
ProcessApiCall:
// client did not pass token on URI let's use cookies
if ((!request->restfull) && (request->context != NULL)) {
// client did not pass token on URI let's use cookies
if ((!request->restfull) && (request->context != NULL)) {
- char cookie[
64
];
- snprintf (cookie, sizeof (cookie), "%s=%s;path=
/api;max-age=%d", COOKIE_NAME, request->uuid,
request->config->cntxTimeout);
+ char cookie[
256
];
+ snprintf (cookie, sizeof (cookie), "%s=%s;path=
%s;max-age=%d", COOKIE_NAME, request->uuid, request->config->rootapi,
request->config->cntxTimeout);
MHD_add_response_header (webResponse, MHD_HTTP_HEADER_SET_COOKIE, cookie);
}
MHD_add_response_header (webResponse, MHD_HTTP_HEADER_SET_COOKIE, cookie);
}