mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
client: allow 201
This commit is contained in:
parent
ba9d639792
commit
f58241c4f2
1 changed files with 2 additions and 2 deletions
|
@ -554,9 +554,9 @@ lws_client_interpret_server_handshake(struct lws *wsi)
|
|||
}
|
||||
|
||||
if (!wsi->do_ws) {
|
||||
if (n != 200 && n != 304) {
|
||||
if (n != 200 && n != 201 && n != 304 && n != 401) {
|
||||
lwsl_notice("Connection failed with code %d\n", n);
|
||||
cce = "HS: Server did not return 200 or 304";
|
||||
cce = "HS: Server unrecognized response code";
|
||||
goto bail2;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue