diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-04-06 15:26:04 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-04-06 15:26:04 +0200 |
commit | b75bbfd9bd96ad8bb7174a768ae70cf3e8c5af7a (patch) | |
tree | 0372d90b0db892cbf46caa80e18a12403cf6edc9 /src/afb-hsrv.c | |
parent | 46fa94d4edd7fa874e334ab51df34f7daca007ce (diff) |
websocket first version works
Change-Id: I4db7d432ea5921636bb5033b8d31e91475cecc52
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-hsrv.c')
-rw-r--r-- | src/afb-hsrv.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/afb-hsrv.c b/src/afb-hsrv.c index 64cea9d5..977aea63 100644 --- a/src/afb-hsrv.c +++ b/src/afb-hsrv.c @@ -152,11 +152,8 @@ static int afb_hreq_websocket_switch(struct afb_hreq *hreq, void *data) if (!later) { struct afb_websock *ws = afb_websock_create(hreq); - if (ws == NULL) { - /* TODO */ - } else { - /* TODO */ - } + if (ws != NULL) + hreq->upgrade = 1; } return 1; } |