Skip to content
Snippets Groups Projects
Commit f978ea86 authored by Hasan-Jawaheri's avatar Hasan-Jawaheri Committed by Andy Green
Browse files

Fixed authorization condition in 101 server response

parent 126be3cc
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment