From f978ea86586d8d958d99830d667ac3c90d4b79e4 Mon Sep 17 00:00:00 2001 From: Hasan-Jawaheri Date: Tue, 10 Apr 2018 18:42:00 +0300 Subject: [PATCH] Fixed authorization condition in 101 server response --- lib/roles/ws/client-ws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roles/ws/client-ws.c b/lib/roles/ws/client-ws.c index 8fd29f60..7c009125 100644 --- a/lib/roles/ws/client-ws.c +++ b/lib/roles/ws/client-ws.c @@ -182,7 +182,7 @@ lws_client_ws_upgrade(struct lws *wsi, const char **cce) goto bail3; } - if (wsi->ah->http_response != 401) { + if (wsi->ah->http_response == 401) { lwsl_warn( "lws_client_handshake: got bad HTTP response '%d'\n", wsi->ah->http_response);