1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

Fixed authorization condition in 101 server response

This commit is contained in:
Hasan-Jawaheri 2018-04-10 18:42:00 +03:00 committed by Andy Green
parent 126be3ccf3
commit f978ea8658

View file

@ -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);