X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-hswitch.c;h=ab9e94b8e0aaacb29a3837649a68d308959c25c3;hb=f3d1f19ae308cc0559728c0ccf6281cbce5ee37c;hp=e1cc087b1f26c06a5271d4352740f1a8d4a1fd0d;hpb=0bae7b4ed23310d368bdd2e0b167d8283bced4a0;p=src%2Fapp-framework-binder.git diff --git a/src/afb-hswitch.c b/src/afb-hswitch.c index e1cc087b..ab9e94b8 100644 --- a/src/afb-hswitch.c +++ b/src/afb-hswitch.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015-2018 "IoT.bzh" + * Copyright (C) 2015-2019 "IoT.bzh" * Author "Fulup Ar Foll" * Author José Bollo * @@ -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); }