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:
parent
126be3ccf3
commit
f978ea8658
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue