summaryrefslogtreecommitdiffstats
path: root/src/afb-hsrv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/afb-hsrv.c')
-rw-r--r--src/afb-hsrv.c7
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;
}