summaryrefslogtreecommitdiffstats
path: root/src/afb-websock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/afb-websock.c')
-rw-r--r--src/afb-websock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/afb-websock.c b/src/afb-websock.c
index 9f5619fb..0247aae6 100644
--- 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-context.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;
- 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)