X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-hswitch.c;h=9e55f29b6809fd6db49cd9c70a99d0613d5dd3ce;hb=65353dce81a629e042800bb7b86fcd869a76727e;hp=e1cc087b1f26c06a5271d4352740f1a8d4a1fd0d;hpb=0bae7b4ed23310d368bdd2e0b167d8283bced4a0;p=src%2Fapp-framework-binder.git diff --git a/src/afb-hswitch.c b/src/afb-hswitch.c index e1cc087b..9e55f29b 100644 --- a/src/afb-hswitch.c +++ b/src/afb-hswitch.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015-2018 "IoT.bzh" + * Copyright (C) 2015-2020 "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); }