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