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
Refactoring requests and context handling
[src/app-framework-binder.git]
/
src
/
afb-websock.c
diff --git
a/src/afb-websock.c
b/src/afb-websock.c
index
9f5619f
..
0247aae
100644
(file)
--- a/
src/afb-websock.c
+++ b/
src/afb-websock.c
@@
-28,6
+28,7
@@
#include "afb-ws-json.h"
#include "afb-method.h"
#include "afb-ws-json.h"
#include "afb-method.h"
+#include "afb-context.h"
#include "afb-hreq.h"
#include "afb-websock.h"
#include "afb-hreq.h"
#include "afb-websock.h"
@@
-203,7
+204,7
@@
int afb_websock_check_upgrade(struct afb_hreq *hreq)
return 0;
ws = NULL;
return 0;
ws = NULL;
- rc = check_websocket_upgrade(hreq->connection, protodefs,
afb_hreq_context(hreq)
, &ws);
+ rc = check_websocket_upgrade(hreq->connection, protodefs,
hreq->context.session
, &ws);
if (rc == 1) {
hreq->replied = 1;
if (ws != NULL)
if (rc == 1) {
hreq->replied = 1;
if (ws != NULL)