Update copyright dates
[src/app-framework-binder.git] / src / afb-hswitch.c
index e1cc087..9e55f29 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015-2018 "IoT.bzh"
+ * Copyright (C) 2015-2020 "IoT.bzh"
  * Author "Fulup Ar Foll"
  * Author José Bollo <jose.bollo@iot.bzh>
  *
@@ -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);
 }