afb-hswitch: Update websocket policy
[src/app-framework-binder.git] / src / afb-hswitch.c
index b4692bc..ab9e94b 100644 (file)
@@ -101,11 +101,6 @@ int afb_hswitch_websocket_switch(struct afb_hreq *hreq, void *data)
                return 1;
        }
 
-       if (!hreq->xreq.context.validated) {
-               afb_hreq_reply_error(hreq, MHD_HTTP_UNAUTHORIZED);
-               return 1;
-       }
-
        return afb_websock_check_upgrade(hreq, apiset);
 }